mirror of
https://gitlab.com/crafty-controller/crafty-4.git
synced 2024-08-30 18:23:09 +00:00
Fix query statement for updates
This commit is contained in:
parent
0b0b63d650
commit
ad734c526c
@ -375,10 +375,13 @@ class HelpersManagement:
|
|||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def get_default_server_backup(server_id: str) -> dict:
|
def get_default_server_backup(server_id: str) -> dict:
|
||||||
|
print(server_id)
|
||||||
bu_query = Backups.select().where(
|
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()
|
backup_model = bu_query.first()
|
||||||
|
|
||||||
if backup_model:
|
if backup_model:
|
||||||
|
Loading…
Reference in New Issue
Block a user