From 6cf778f068a7c0a97d356a30a19cd7302fec1fef Mon Sep 17 00:00:00 2001 From: Andrew Date: Wed, 2 Mar 2022 13:07:00 -0500 Subject: [PATCH] appease the linter --- app/classes/models/management.py | 3 ++- app/classes/shared/main_controller.py | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) 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()