check for doubles

This commit is contained in:
2026-05-10 21:19:55 +02:00
parent a7ab2db9f2
commit 5dc01b002e
+8
View File
@@ -214,6 +214,14 @@ async def delete_book_api(book_id: int):
return {"ok": ok, "message": message} return {"ok": ok, "message": message}
@app.get("/api/debug/calibre_books")
async def debug_calibre_books():
"""Return raw listbooks sample so we can verify field names and structure."""
cfg = config.load()
books = fetch_all_books(cfg.calibre)
return {"total": len(books), "sample": books[:5]}
# --- Data reset --- # --- Data reset ---
@app.post("/settings/reset-sync-data") @app.post("/settings/reset-sync-data")