Fix backup jobs query and add missing config

This commit is contained in:
Christian 2026-01-02 02:26:33 +01:00
parent 3ffee6d428
commit ebf3b1f31c
3 changed files with 3 additions and 2 deletions

View File

@ -1 +1 @@
1.3.72
1.3.73

View File

@ -161,7 +161,7 @@ async def list_backups(
query += " ORDER BY created_at DESC LIMIT %s OFFSET %s"
params.extend([limit, offset])
backups = execute_query_single(query, tuple(params))
backups = execute_query(query, tuple(params))
return backups if backups else []

View File

@ -104,6 +104,7 @@ class Settings(BaseSettings):
BACKUP_ENABLED: bool = True
BACKUP_STORAGE_PATH: str = "/app/backups"
BACKUP_DRY_RUN: bool = False
BACKUP_READ_ONLY: bool = False
BACKUP_RETENTION_DAYS: int = 30
BACKUP_RETENTION_MONTHLY: int = 12
BACKUP_MAX_SIZE_GB: int = 100