databse wipe

This commit is contained in:
2026-05-10 17:08:28 +02:00
parent d69169807c
commit 881604b4a5
4 changed files with 32 additions and 0 deletions
+9
View File
@@ -174,6 +174,15 @@ async def test_calibre():
return {"ok": ok, "message": message}
# --- Data reset ---
@app.post("/settings/reset-sync-data")
async def reset_sync_data():
counts = db.clear_sync_data()
log.info("Sync data cleared: %s", counts)
return RedirectResponse("/settings?reset=1", status_code=303)
# --- JSON status API ---
@app.get("/api/status")