fix(fc3h): split semicolon-stacked statements (E702) and bridge v-dialog v-model to avoid prop write

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-05-24 23:37:06 -04:00
parent e78a35d333
commit 718cc79905
6 changed files with 32 additions and 12 deletions
+2 -1
View File
@@ -30,7 +30,8 @@ _BACKUP_SETTINGS_FIELDS = (
def _bad(error: str, *, status: int = 400, **extra):
body = {"error": error}; body.update(extra)
body = {"error": error}
body.update(extra)
return jsonify(body), status
+12 -4
View File
@@ -54,7 +54,9 @@ def backup_db_task(self, *, tag: str | None = None,
kind="db", status="running", tag=tag,
triggered_by=triggered_by, started_at=now, manifest={},
)
session.add(row); session.commit(); session.refresh(row)
session.add(row)
session.commit()
session.refresh(row)
run_id = row.id
try:
@@ -101,7 +103,9 @@ def backup_images_task(self, *, tag: str | None = None,
kind="images", status="running", tag=tag,
triggered_by=triggered_by, started_at=now, manifest={},
)
session.add(row); session.commit(); session.refresh(row)
session.add(row)
session.commit()
session.refresh(row)
run_id = row.id
try:
@@ -156,7 +160,9 @@ def restore_db_task(self, *, source_backup_run_id: int) -> dict:
restored_from_id=src.id,
manifest={"source_sql_path": src.sql_path},
)
session.add(marker); session.commit(); session.refresh(marker)
session.add(marker)
session.commit()
session.refresh(marker)
marker_id = marker.id
sql_path = src.sql_path
@@ -200,7 +206,9 @@ def restore_images_task(self, *, source_backup_run_id: int) -> dict:
restored_from_id=src.id,
manifest={"source_tar_path": src.tar_path},
)
session.add(marker); session.commit(); session.refresh(marker)
session.add(marker)
session.commit()
session.refresh(marker)
marker_id = marker.id
tar_path = src.tar_path