fixed regular deletions of files

This commit is contained in:
Marcel Gansfusz
2025-11-04 19:16:59 +01:00
parent 547411ba03
commit e13d06d4a7
2 changed files with 5 additions and 3 deletions

View File

@@ -79,6 +79,7 @@ except mariadb.OperationalError:
pass
db.commit()
def remove_old_FIP_entrys():
cur = db.cursor(dictionary=True)
cur.execute(
@@ -87,7 +88,7 @@ def remove_old_FIP_entrys():
files = cur.fetchall()
info(f"Remove Files: {files}")
for file in files:
c.execute("DELETE FROM FIP WHERE id=?", (file["id"]))
c.execute("DELETE FROM FIP WHERE id=?", (file["id"],))
os.remove(FILES_IN_PROGRESS / file["filename"])
db.commit()

View File

@@ -33,6 +33,7 @@ services:
MARIADB_ROOT_PASSWORD: DBPassword
MARIADB_USER: app
UNIZEUG_PATH: /unizeug
APP_ROOT_PATH: /python
MARIADB_PASSWORD: DBPassword
MARIADB_DATABASE: Unizeug
TZ: "Europe/Vienna"