Moves update_delete_locator_map functionality to its own method.

This commit is contained in:
Sergi Delgado Segura
2020-01-17 17:47:05 +01:00
parent 07c9b7d19e
commit dad70eb780

View File

@@ -118,6 +118,10 @@ class Cleaner:
db_manager.delete_triggered_appointment_flag(uuid)
# Update / delete the locator map
Cleaner.update_delete_locator_map(locator, uuid, db_manager)
@staticmethod
def update_delete_locator_map(locator, uuid, db_manager):
locator_map = db_manager.load_locator_map(locator)
if locator_map is not None:
if uuid in locator_map: