Fix: add missing DB_PATH constant for backup/restore endpoints
This commit is contained in:
@@ -1822,6 +1822,7 @@ import shutil, hashlib
|
|||||||
from datetime import datetime as _dt2
|
from datetime import datetime as _dt2
|
||||||
|
|
||||||
BACKUP_DIR = Path("/app/data/backups")
|
BACKUP_DIR = Path("/app/data/backups")
|
||||||
|
DB_PATH = "/app/data/aars.db"
|
||||||
BACKUP_DIR.mkdir(parents=True, exist_ok=True)
|
BACKUP_DIR.mkdir(parents=True, exist_ok=True)
|
||||||
|
|
||||||
def _backup_path(name):
|
def _backup_path(name):
|
||||||
|
|||||||
Reference in New Issue
Block a user