mirror of
https://github.com/aljazceru/python-teos.git
synced 2025-12-18 06:34:19 +01:00
Rename delete_completed_appointments and rearange arguments
This commit is contained in:
@@ -26,7 +26,7 @@ class Cleaner:
|
||||
db_manager.delete_watcher_appointment(uuid)
|
||||
|
||||
@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
|
||||
appointment = appointments.pop(uuid)
|
||||
|
||||
|
||||
@@ -144,8 +144,8 @@ class Watcher:
|
||||
)
|
||||
|
||||
# Delete the appointment and update db
|
||||
Cleaner.delete_complete_appointment(
|
||||
self.appointments, self.locator_uuid_map, filtered_match["locator"], uuid, self.db_manager
|
||||
Cleaner.delete_completed_appointment(
|
||||
filtered_match["locator"], uuid, self.appointments, self.locator_uuid_map, self.db_manager
|
||||
)
|
||||
|
||||
# Register the last processed block for the watcher
|
||||
|
||||
Reference in New Issue
Block a user