From 3c6f13ef0047bce851e99d45f81e25032ae1d792 Mon Sep 17 00:00:00 2001 From: Sergi Delgado Segura Date: Mon, 11 Nov 2019 13:27:57 +0000 Subject: [PATCH] Rename delete_completed_appointments and rearange arguments --- pisa/cleaner.py | 2 +- pisa/watcher.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pisa/cleaner.py b/pisa/cleaner.py index 33af54a..88177bc 100644 --- a/pisa/cleaner.py +++ b/pisa/cleaner.py @@ -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) diff --git a/pisa/watcher.py b/pisa/watcher.py index 60d6ee1..d4c6cc2 100644 --- a/pisa/watcher.py +++ b/pisa/watcher.py @@ -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