feat: show i.O. photos in review, lightbox on thumbnail click
This commit is contained in:
10
server.py
10
server.py
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user