From ad734c526c71f771976d00e6556c7bb1e21d72f5 Mon Sep 17 00:00:00 2001 From: Andrew Date: Sat, 15 Jun 2024 16:09:01 -0400 Subject: [PATCH] Fix query statement for updates --- app/classes/models/management.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/app/classes/models/management.py b/app/classes/models/management.py index 956e2405..d44306eb 100644 --- a/app/classes/models/management.py +++ b/app/classes/models/management.py @@ -375,10 +375,13 @@ class HelpersManagement: @staticmethod def get_default_server_backup(server_id: str) -> dict: + print(server_id) bu_query = Backups.select().where( - Backups.server_id == server_id & Backups.default == True + Backups.server_id == server_id, + Backups.default == True, # pylint: disable=singleton-comparison ) - + for item in bu_query: + print("HI", item) backup_model = bu_query.first() if backup_model: