Fix query statement for updates

This commit is contained in:
Andrew 2024-06-15 16:09:01 -04:00
parent 0b0b63d650
commit ad734c526c

View File

@ -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: