feat: show i.O. photos in review, lightbox on thumbnail click

This commit is contained in:
Ferdinand
2026-04-08 10:40:07 +02:00
parent 8a80021983
commit 35dccd4f1b
2 changed files with 98 additions and 9 deletions

View File

@@ -86,7 +86,15 @@ def analyze(req: AnalyzeRequest):
use_ai=req.use_ai,
api_key=api_key,
)
return {"results": results}
from analyzer import SUPPORTED_EXTENSIONS
all_paths = {
os.path.join(req.folder, f)
for f in os.listdir(req.folder)
if os.path.splitext(f)[1].lower() in SUPPORTED_EXTENSIONS
}
flagged_paths = {item["path"] for item in results}
ok_paths = sorted(all_paths - flagged_paths)
return {"results": results, "ok_paths": ok_paths}
@app.post("/move")