Rename delete_completed_appointments and rearange arguments

This commit is contained in:
Sergi Delgado Segura
2019-11-11 13:27:57 +00:00
parent a1a1206e0c
commit 3c6f13ef00
2 changed files with 3 additions and 3 deletions

View File

@@ -26,7 +26,7 @@ class Cleaner:
db_manager.delete_watcher_appointment(uuid) db_manager.delete_watcher_appointment(uuid)
@staticmethod @staticmethod
def delete_complete_appointment(appointments, locator_uuid_map, locator, uuid, db_manager): def delete_completed_appointment(locator, uuid, appointments, locator_uuid_map, db_manager):
# Delete the appointment # Delete the appointment
appointment = appointments.pop(uuid) appointment = appointments.pop(uuid)

View File

@@ -144,8 +144,8 @@ class Watcher:
) )
# Delete the appointment and update db # Delete the appointment and update db
Cleaner.delete_complete_appointment( Cleaner.delete_completed_appointment(
self.appointments, self.locator_uuid_map, filtered_match["locator"], uuid, self.db_manager filtered_match["locator"], uuid, self.appointments, self.locator_uuid_map, self.db_manager
) )
# Register the last processed block for the watcher # Register the last processed block for the watcher