quick fix for view being a POST, its now redirected to a GET, but I want to fix up the viewlist properly as well, should work for now though

This commit is contained in:
2022-01-20 11:26:09 +11:00
parent c800bebaab
commit 30a2fa6d99
5 changed files with 55 additions and 17 deletions

15
TODO
View File

@@ -1,10 +1,15 @@
## GENERAL
* optim to not run_ai_on_* for scan, needs to make sure last run_ai_on actually ran/worked - might have failed (or in my case was marked stale and I cancelled it)
* going forward into search page (and probably all POSTs) does not work
don't render_template instead do a redirect to a GET of the new, or list? for del...
files.py:@app.route("/view/<id>", methods=["POST"])
job.py:@app.route("/jobs", methods=["GET", "POST"])
job.py:@app.route("/job/<id>", methods=["GET","POST"])
files.py:@app.route("/fix_dups", methods=["POST"])
files.py:@app.route("/viewlist", methods=["POST"])
-- this will need a total rewrite for viewer to handle fullscreen across offset/size boundaries so fix that instead
* going forward into search page (and probably all POSTs) does not work - no data posted (e.g. no search term)
- okay somehow (maybe cache-control?) is causing flask to handle this and gunicorn does not!
- seems we could make the /search url be /search/term and use a GET, this would make it not run into this issue
- OR, seems we can follow a different pattern... don't render_template instead do a redirect to a GET of the new, or list? for del...
* optim to not run_ai_on_* for scan, needs to make sure last run_ai_on actually ran/worked - might have failed (or in my case was marked stale and I cancelled it)
-- also the case for get file details though, need to make sure last one was completed
* per file you could select an unknown face and add it as a ref img to an existing person, or make a new person and attach?
* [DONE] order/ find face with largest size and at least show that as unmatched