diff --git a/app/classes/models/management.py b/app/classes/models/management.py index 49a67fc0..59ad3d6f 100644 --- a/app/classes/models/management.py +++ b/app/classes/models/management.py @@ -388,11 +388,12 @@ class helpers_management: self.set_backup_config(server_id=server_id, excluded_dirs=excluded_dirs) else: logger.debug(f"Not removing {dir_to_del} from excluded directories - not in the excluded directory list for server ID {server_id}") - + @staticmethod def clear_unexecuted_commands(): Commands.update({ Commands.executed: True + #pylint: disable=singleton-comparison }).where(Commands.executed == False).execute() diff --git a/app/classes/shared/main_controller.py b/app/classes/shared/main_controller.py index b2f82941..ee778491 100644 --- a/app/classes/shared/main_controller.py +++ b/app/classes/shared/main_controller.py @@ -596,4 +596,4 @@ class Controller: counter += 1 @staticmethod def clear_unexecuted_commands(): - helpers_management.clear_unexecuted_commands() \ No newline at end of file + helpers_management.clear_unexecuted_commands()