13aab072db
use full path for current_file I think its more meaningful, and also extra optimisation - if same md5 hash, dont redo thumbnail
Damien De Paoli2021-09-21 13:46:22 +10:00
68b84a2b07
prevent div by zero error, when job is > 5 minutes, and no progress yet
Damien De Paoli2021-09-21 13:45:45 +10:00
9f90cdaaac
fix up all the dumb bugs I introduced and clearly never tested when I tweaked the remove file/dir after if you move files on the FS out from under PA
Damien De Paoli2021-09-21 00:37:39 +10:00
79c7e5a2a8
dont offer force scan delete data & rebuild in PROD - wont do that again
Damien De Paoli2021-09-21 00:36:55 +10:00
fe7627c89c
DEBUG is now a boolean to fix occasionaly debug when I did not want it
Damien De Paoli2021-09-17 18:08:55 +10:00
85902bbc3c
redo Status SetMessage so it defaults to success and danger is a force in the setting of the message, to fix BUG-52 where a success message ended up with danger colour somehow -- might not perfectly fix it, but its neater and if it does not fix it, then its a timing issue I am not sure how to test/fix
Damien De Paoli2021-09-16 21:18:09 +10:00
67b1c0dd49
fix BUG-53 video/image viewer switching had spacing and name wrong
Damien De Paoli2021-09-16 21:06:05 +10:00
85dd7d7bd1
fix bug with commit logs every log, rather than actually every 5 seconds as intentended.
Damien De Paoli2021-09-16 20:22:50 +10:00
4d0addb87b
removing extra session.commits, and optimsing run_ai_on - dont reprocess faces if no new refimgs since last scan -- so we had set last_ai_scan on FILE as well
Damien De Paoli2021-09-16 19:25:23 +10:00
b6f672b575
ai stats has divs not tables, so more compact/responsive, also stats now have clickable link to appropriate AI:<tag> search
Damien De Paoli2021-09-15 00:23:25 +10:00
303676f9b0
bug-57, viewing list of search and going past page_size gets wrong data
Damien De Paoli2021-09-14 18:16:09 +10:00
301b3d220b
fixed BUG-54/55, viewer now works in PROD, current_file being set in run_ai_on job, added "new" bug-53 re video fname not being set properly when next/prev in viewer
Damien De Paoli2021-09-14 17:56:06 +10:00
56f3853bfc
removed unneeded ref to font-awesome, added compression, ttl for static files, several small cleanups on labels, etc. for lighthouse improvements
Damien De Paoli2021-09-14 17:22:42 +10:00
6e96c83d9e
put title on progress bars so on hover you get the details, useful when you have 1 of 10000 on a slow job
Damien De Paoli2021-09-14 17:06:47 +10:00
238a813ccc
fix BUG-50, remove secret_token use, it caused every new instance of Flask to auth - mild irritation, BUT, caused each gunicorn thread to have a different key -- this does not work, back to a random static val and live with it
Damien De Paoli2021-09-13 17:55:49 +10:00
5bb2195239
fix BUG-51, its ENV not env and production not Production
Damien De Paoli2021-09-13 17:54:59 +10:00
ae067b81ce
not worth fixing json* invocations, only 2, and the fix is either forcing a mutable pickle type or TypeDecorator -- both a bit complex than its worth
Damien De Paoli2021-09-06 18:12:26 +10:00
5d7eed68eb
fix BUG-49 (images in DBox no horizontally spaced) and fixed spacing between images and buttons
Damien De Paoli2021-09-05 22:44:25 +10:00
479c6179c2
fix icon url needing to be passed as a jinja2 var
Damien De Paoli2021-09-05 22:23:08 +10:00
9d094f9437
fixed BUG-45, and new accidental bug where I button-mashed a "now" variable to "ynw" somehow
Damien De Paoli2021-09-05 21:59:41 +10:00
a64b651118
use new base_path Setting, but have not tested use of absolute paths instead of relative paths, also need better tooltips for the paths -- AND, still have odd trailing slash due to SymLinkName, etc. being too complex
Damien De Paoli2021-09-05 21:58:54 +10:00
7c192b5d66
with MoveDBox going into js file, need to pass jinja2 var as a param
Damien De Paoli2021-09-05 21:34:13 +10:00
acd965f5c3
put back MoveDBox() in, accidentally deleted it
Damien De Paoli2021-09-05 21:33:46 +10:00
eb0145467f
fixed bugs 47, 48, 49 and reduced complexity of dup counting as well. Now removes dirs than become empty due to duplicate removals
Damien De Paoli2021-09-04 19:50:49 +10:00
f9bd558727
moved most of the js out to internal/js/view_support.js
Damien De Paoli2021-08-28 21:45:28 +10:00
c38929d884
viewer now deals with videos and images when next/prev, AND, fullscreen is maintained on videos and handles when escape gets you out as well...
Damien De Paoli2021-08-28 13:26:07 +10:00
1d3caf17de
complete rewrite of viewer, videos need to be fixed. Otherwise, viewer now loads entry data for all "how_many" images on the screen, and allows prev/next movement between images without a DB load for the current page of images, then as required, it will retrieve the prev/next "how_many" from the database via /viewlist route, and go back into view/<id> of the appropriate new image of the new list. Also prevents going below 0 and beyond end of DB for the first time.
Damien De Paoli2021-08-27 23:38:31 +10:00
652a89161d
include the js form the internal dir and viewer now has tooltips on buttons, and all buttons work, call the right javascript, send jobs to the pa_job_manager, and make image go gray with throbber, and on job completion, hide throbber, redraw the image in color and with the newly transformed image
Damien De Paoli2021-08-15 21:26:43 +10:00
40c0e3631c
no need for one-off copy of icons.svg, its now in internal/
Damien De Paoli2021-08-15 00:33:50 +10:00
59c72f9aee
moving to /internal for a js dir, icons.svg Ive built, etc. and added route in files.py, updates all html to use new path
Damien De Paoli2021-08-15 00:26:27 +10:00
50ca3098ae
adding in static content like icons, js and explicitly ignoring the parts of static we should: Bin, Import, Storage, upstream
Damien De Paoli2021-08-14 23:08:55 +10:00
7db988d752
PROD_HOST comes from shared not also defined in main, also was still referencing book cert - not really a combo that was likely as we used gunicorn not flask in prod, and gunicorn has correct cert set on cmdline
Damien De Paoli2021-08-11 17:49:32 +10:00
ae0d27b284
first pass of usable fullscreen, will need arrow keys to remember state, or realistically pre-load? but for now you can fullscreen the image you are on
Damien De Paoli2021-07-31 22:49:40 +10:00
902830ad95
viewer now has (non-functional) buttons for rotation, flip, fullscreen, and Ive put icons.svg into the repo as its hand-crafted upstream content so I cant really just download it anymore
Damien De Paoli2021-07-31 22:40:12 +10:00
c0a8ab8f79
allowed view prev/next to remember settings (fname, faces, distance) and use new CreateSelect() for AI menu, also make fname toggle actually do that
Damien De Paoli2021-07-29 21:44:54 +10:00
7926ab3455
allowed view prev/next to remember settings (fname, faces, distance)
Damien De Paoli2021-07-29 21:42:58 +10:00
dc35417933
allowed CreateSelect to take list of values for options - used in cnn/hog AI model menu in viewer
Damien De Paoli2021-07-29 21:42:35 +10:00
566985a477
put face file link here so we can see model in viewer
Damien De Paoli2021-07-29 21:41:42 +10:00