Commit Graph

91 Commits

Author SHA1 Message Date
80ceb7aaed removed __repr__ from classes in files.py, and added in sqlalchemy class and marshmallow schemas for entry amendments, then load amendments on get_entry_by_id - so any page load (first or next/prev) will see amendments, we then display them into the files list and now add a white circle inside the throbber and overlay that with approrpiate icon/image - all of which is taken from amendment type and eid. tables.sql also updated to create the amendment data, tweaked icons.svg to remove hardcoded-colours for flip_[vh] 2025-10-15 23:06:05 +11:00
e6c9429466 remove search term from DB 2025-10-07 23:30:28 +11:00
87651e80a0 fix up capitalisation of bOOLEAN, and removed fields from PA_USER_STATE, no longer needed with new viewing logic 2025-10-02 17:51:25 +10:00
e0b597c58c add entry_list to query table 2025-09-26 19:22:36 +10:00
21059a6235 reformatted to be normal sql, added query table 2025-09-20 19:32:47 +10:00
fed78672dc make message field larger to cater for larger debugs 2024-04-07 20:18:10 +10:00
8d9cf5279e change alert to level 2023-01-11 13:57:19 +11:00
0784861331 added persistent and cant_close to PA_JobManager_FE_Message, used them from pa_job_manager to set status messages with persistence/close buttons appropriately for items like fix_dups/stale_jobs. When "fixing" now, the persistent Status message stays, but its now positioned approx. below the navbar on the right and is ok. Started on changing status to a more sensible naming conventions (away from alert to level) - more work to complete this 2023-01-10 17:45:02 +11:00
405da8dc8f remove LOCN for BUG-108 2022-12-23 15:20:53 +11:00
9223f50323 start coversion of locn (array) -> top, right, bottom, left (4 separate integers) 2022-12-23 12:03:33 +11:00
8d406c889f back to DEV for settings insert 2022-08-03 17:54:31 +10:00
a8af00fe66 big change to get metadata working fully in DB and on Filesystem, and recover from most common scenarios, improved GUI as well for allowing an immediate search after adding refimg as well 2022-08-01 23:44:38 +10:00
391b61f3c4 first pass at keeping overrides on face delete - should at least stop code crashing if you try to delete faces from DB and they still had a matching override 2022-07-28 21:23:34 +10:00
24bcfa0aab now have a NewJob used in pa_job_mgr and it does not set start_time until it starts, caters for BUG-97 (restarting jobs resetting start times) 2022-07-23 00:33:04 +10:00
b2dd6a3de0 table.sql now does not pre-set the users, and it connects the sequences for person and refimg - should do the rest, but those allowed me to pg_dump out 3 tables (person, refimg, person_refimg_link), so now on new DB load the person and their ref imgs are in at the start - the sequence connection was needed for the dump to reset the seq on load 2022-07-15 22:51:18 +10:00
1cfd4d1713 BUG-60 no longer relevant as we only support 1 path 2022-07-15 18:06:18 +10:00
3cd1bf056a added ability to auto-rotate jpegs as we import them. The auto-rotation uses /usr/bin/exifautotran which rotates losslessly, and we optimised to then not also re-rotate the thumbmail. This address a few bugs in the 90s, including the one where Mandys photos were not getting faces (they were rotated), and without really doing anything the odd one where we sometimes lost tmp_locn on first load after db recreation - I cant reproduce so ignoring it 2022-07-15 18:01:54 +10:00
3710b573ea added auto-rotate to settings, not used in job mgr yet 2022-07-13 00:26:24 +10:00
b935aa8ab8 can now add/remove overrides (manual or no matchx3) in any sequence of load/reload, or back-to-back and it all works 2022-06-13 18:30:13 +10:00
a53d4896b0 now have functional add/remove manual override to existing person 2022-06-11 22:41:31 +10:00
6b67488afe putting face bytea into override to allow use post face id reordering, also committing to allow once-off overrides 2022-06-10 16:49:50 +10:00
226f6fdb3e remove old/wrong faces binary from FILE in DB 2022-02-27 00:40:06 +11:00
e9ab49c60a with viewer, unmatched face now has img data / thumbnail, so we know what it really looks like when we choose to override - still major WIP, tables.sql also has some override types, but not convinced I have design yet 2022-02-06 23:21:23 +11:00
e1a6348967 face_size_limit added so we ignore faces that are too small 2022-02-02 21:12:14 +11:00
c6efd29a48 removed fullscreen and added default_search_noo 2022-01-30 23:02:42 +11:00
ec4747ba2e added last_used to pa_user_state 2022-01-28 19:58:52 +11:00
47039ec35c partial fix for various BUGs with going past the end of a viewing list... we now keep num_entries (of files) in pa_user_state, and use it to stop going before first or past last entry, even from viewlist, so this fixes many isseus... Final bug(s) are relating to multiple Dirs in a Path and its feeling too complex for no real gain, going to remove the feature, but for now, this version works / can be made to PROD 2022-01-28 15:52:35 +11:00
55724ccd59 removed use of last_entry_in_db (boolean) and replaced with use of current/first_eid/last_eid in PA_USER_STATE so it persists across reloads/back buttons, and allows full use of ajax data retrieval in the background for the viewer (so fullscreen stays across page loads), and the next/prev buttons are set on the image load, not after they have been pressed "one too many times" 2022-01-27 14:27:52 +11:00
2e4b1ed9d2 defaults in PAuser include noo/folders for import/storage separated, defaults are stored into PAUser in DB, changable in GUI, used as the defaults for new PA_User_States. Also disabled search noo, search folders as they are hard-coded in the ORM retreive anyway 2022-01-22 23:26:14 +11:00
0f4632e240 changing options on files_*, search, also next/prev all now use POST->redirect model, so should allow back/forward browser buttons to work - commit so we can test in PROD 2022-01-22 21:36:58 +11:00
b58afa3a5c clean up of states, to support multiple searches/views, and this will at least work for back/forward in prod - I believe. Still needs defaults from prefs, AND, remove unneeded variables from template/* and set those default values based on prefs 2022-01-21 16:48:05 +11:00
4fa7b4b2d3 renamed pa_pref to better named pa_user_state, changed code to adapt and made new_view and viewlist work with newer Options/pa_user_state - still more work but it should be functional again 2022-01-20 14:13:50 +11:00
10e2c26159 add view_eids in pa_prefs for new GET viewer 2022-01-20 11:37:15 +11:00
de81db9412 unmatched faces now sorts size of face desc, and is slightly prettier -- still slow and only takes you to the file anyway, might optimise that later. still no code to auto deal with unmatched face, but will add some capabilities next. Also, remembered last dir when file_ip/sp/bin. Also throw error if try to find unknown person - happened since I allowed the back/forward. 2022-01-18 20:59:39 +11:00
136525a73c put default ref img model back to hog, cnn is dangerous and can still wipe pa_job_mgr on mara with 32G of mem, so just leave it 2022-01-16 01:26:04 +11:00
a2fb877f12 implemented job archiving (via a Setting, and just viewing recent or all) 2022-01-13 23:11:21 +11:00
592dcf546d fix up path screw up in initial test insert of data, also added support in Settings for scheduled jobs 2022-01-13 13:27:19 +11:00
fc9b831acd adding fullscreen into pa_prefs 2021-10-01 22:13:56 +10:00
3c371246ce fix incorrect PA_USER_ID int -> PA_USER_DN varchar 2021-09-21 16:54:13 +10:00
de6ba62b67 user prefs now in table (per user/path combo) and works 2021-09-20 21:08:46 +10:00
0c41aa48fc add LAST_AI_SCAN to FILE, and switched back to dev settings 2021-09-16 19:22:12 +10:00
532c6997c5 prod version for now 2021-09-13 17:56:53 +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 2021-09-05 21:58:54 +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 2021-09-04 19:50:49 +10:00
ebeb085326 alter desc 2021-07-29 21:41:13 +10:00
bd28c0cf64 face_distance is a float 2021-07-28 21:35:12 +10:00
b7d346c206 model_used is now per file, not per face, implemented split of default_model to default_refimg_model and default_scan_model in settings, and default_refimg_model actualy works when creating refimgs in person.py. The model_used in face_file_link is based on default settings model and will scan with cnn if chosen and store that in DB as needed. Need viewer to allow changing per file / not just default for future scans 2021-07-27 17:14:03 +10:00
555ce70577 renamed AI_Model to AIModel for consistency, added it as a functioning drop-down select on settings page, added face_distance to db and code, put face_distance model_used into all classes ready for use 2021-07-25 15:13:39 +10:00
4f9e03f99e added ai model settings 2021-07-25 13:18:21 +10:00
08ef9ea224 added locan data to face 2021-07-17 16:35:40 +10:00