Simplifies the Cleaner and adds docstrings

We were passing some unnecessary parameters to the Cleaner (locator) that could be derived from other data (uuid and appointments). Also standarises the order of the  parameters to match the rest of the methods
This commit is contained in:
Sergi Delgado Segura
2019-12-10 13:31:42 +01:00
parent b0bf653ba4
commit 2cdd78b8e6
4 changed files with 49 additions and 15 deletions

View File

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