Commit Graph

104 Commits

Author SHA1 Message Date
3237e3bf8f fixed up dup code to work with paths, added path_types throughout and updated TODO to be clear on what next 2021-04-17 17:43:42 +10:00
ca7391e21b fixed hard-coded static/storage, now use in_path.path_prefix 2021-04-12 00:06:26 +10:00
095b7c8333 Path in the DB is complete, still have hacks around displaying folders (hardcoded path name) 2021-04-11 15:35:01 +10:00
fddd47a1ab now using uselist=False to ensure file_details, dir_details, in_dir are one-to-one, and dont have useless list of 1 element. updated TODO to reflect order of how to tackle change over to paths and dirs 2021-04-10 11:28:17 +10:00
1ece519a2a added first pass of viewing by folders, see TODO for next steps 2021-04-06 17:05:24 +10:00
5f42e19bcd use kfid instead of kfname for consistency, and now we have 2 loops of kfids, then keep the count explicit (kfid.count) rather than implicity loop.index 2021-03-28 16:17:01 +11:00
a1c2b3f72b fixed way we account for remaining deletes, this should genuinely fix the dup counting stuff now 2021-03-27 15:12:03 +11:00
932d05b8e3 improved duplicate counting, removed concept of sets, and validated counts work via DB selects, and they do 2021-03-27 14:24:27 +11:00
b1771baa2d providing some totals via the code, and fudging numbers to show how many keep/del due to auto rules, and how many manual choices left 2021-03-25 19:53:26 +11:00
a6161d1fa2 add in file cnt inside dup paths 2021-03-24 19:35:49 +11:00
92c5ee3e9d keep processing all dups, even when > pagesize, so that alert at end is definitive about automatic matches that will be deleted. Also, fixed issue where a duplicate in the root dir of an import / storage path, was showing as blank after TrimmedPath() 2021-03-23 18:37:32 +11:00
055dd58d34 better formatting for all automatic matches, deal with automatic matching of preferred_paths, put <input type=hidden> fields in for files in storage and import paths, only display headings/content if it actually exists 2021-03-21 17:00:36 +11:00
86ff96fefb now passing single DD var (duplicate data) from files.py for simplicity, also added the beginnings of support for regex-d auto keeping / auto deleting of files, and paths - noting that path data from dups.py seems to not be working with my test data at present, so html showing it needs testing too 2021-03-21 12:18:59 +11:00
2cd55580a9 rewrote dups.html to now use newer model, where we will auto-delete those that match the regexp, and not show a per row view of these. Also removed extra / unneeded line when processing deleting files 2021-03-17 20:04:25 +11:00
0d0607e9c6 made help go via on mouse over instead of onclick 2021-03-06 17:26:28 +11:00
76aee3a10a okay fix_dups page now has functioning pagination, highlights regex matching "good" files as green, and just a file as yellow if we cant find the right one, so easily shows where to really pat attention. Has DBox based help page, and overall just a better UI/UX 2021-03-06 17:18:11 +11:00
b9dea327d0 use pagesize not page_size, and pass it in based on job extras, also use path based on job extras, so we fix issue of fix_dups not knowing which path from settings was used (import or storage) 2021-03-06 11:45:21 +11:00
1dc8477758 first pass of paginated dups, with drop-down (non-functional), but otherwise pages work - presume if I clicked it to delete, it would, but then I would need to re-do check_dups OR optimise and get it to come back to dups with next page -- probably preferred -- BUT, need to keep job state between page loads? 2021-03-03 22:05:58 +11:00
689081ef0b put summary counts on dups 2021-03-02 22:44:00 +11:00
269009f14f fixed choosing dup dir alert 2021-03-01 19:13:38 +11:00
477bd6f099 added code to split out storage_path and import_path, still a bit clunky, but functional. SymlinkName also now in shared 2021-02-27 18:30:54 +11:00
7fd6a2eddb fixed BUGs 22 and 23 - both relate to the HTML forms being different for the search and viewing data, so changing one when the other was set, did not pass the values through, e.g. search term not there when you change a viewing option, or after searching, it did not know the grouping options. Fixed from the search side by showing a label of what you are searching for and storing it statically in the viewing form. Sorted by jscript onSubmit func to take 5 viewing options and store the last value in hidden inputs in the search form 2021-02-21 15:40:47 +11:00
33ad544354 removed extra stuff from rmdups job list view, to keep the job list useful 2021-02-17 21:52:58 +11:00
0bfd3b58b3 moved to storing DB ids rather than names of files/dirs for deletions 2021-02-14 16:18:22 +11:00
09d56c5cc5 added comments, also remove url_for on request.endpoint, was breaking when needing a param to be passed 2021-02-14 16:02:20 +11:00
27e881ea8c minor clean up on headings, alerts at top of /fix_dups route 2021-02-13 20:30:21 +11:00
49e0a5a797 now have a partial fix_dups path, it shows the content in a much more reasonable manner, and allows the GUI to select the files/paths to keep, HOWEVER, the form POST is not enabled, and I still need to process the form data -- right now, now sure how I know which files to delete vs keep -> will need hidden vars of options, not just the to_keep - then process them 2021-02-13 20:21:26 +11:00
1499f2ca61 fixed BUG-21: file stucture broken after rescan, and beginnings of new job for checking for duplicate files, and having the back-end job indicate to the front-end that there are duplicates, and the basic route is in the f/e, but not built yet 2021-02-11 20:09:24 +11:00
e6bc751844 added storage_path to settings 2021-02-09 19:37:30 +11:00
a2775baeeb trying diff size for sm-txt - better for larger monitor 2021-02-09 19:37:11 +11:00
b168b0c77b add year as path preprend for storage suggestion 2021-02-09 19:36:56 +11:00
893d48c8d5 using sm-txt to shrink action buttons at top of page, created basic move/del dbox to be more or less partially functional, without doing anything real 2021-02-07 20:44:55 +11:00
ca7064dd92 txt height modifier style for shrinking title bar text 2021-02-07 20:43:34 +11:00
6415b9d50d remove unneeded and complex jquery function 2021-02-06 17:02:46 +11:00
6b0a6f194e added in selection code, also temp disable of right-click menu for thumbs 2021-02-06 16:58:19 +11:00
dac9862171 created a highlight style in the bootstrap info colour 2021-02-06 16:20:47 +11:00
1e219fd2b8 now keep size over reloads of page, its hacky though 2021-02-02 01:15:28 +11:00
d4e3a1d93e use vars, not form to set initial form values, use new CreateSelect() to neaten up form creation, redo formatting to have 3 cols, left / centre / right justified, also disable prev button when offset is 0, to stop the button just reloading the same page over again 2021-02-02 00:24:47 +11:00
5703664019 changed to fixed number of images per load, rather than complicating with week/month/year retrieval 2021-02-01 23:13:38 +11:00
282c5ae721 fix up month, etc. view not having proper divs for heading rows 2021-01-31 18:32:30 +11:00
24437a5589 fix new bug where size button submits form and goes back to M with just return false on them 2021-01-31 18:29:42 +11:00
552ea7e614 keep last form values 2021-01-31 18:17:16 +11:00
2db7f59a40 made basic newest/oldest week/month/year part of gui actually retreive what we want, and have a title per grouping, but the grouping title is hard-coded for now, will need more data to do a better test, also hacky submit button for now until I decide how to enact the gui change requested 2021-01-30 23:26:52 +11:00
0c5654a45e first pass of new viewing files "button bar" 2021-01-30 15:39:55 +11:00
9d1370cd62 allow video files to be clickable, in FF it just works, imagine my chromes are just broke as they have partial nvidia optims that are broken 2021-01-29 00:10:05 +11:00
e3dcce4a53 if we have current_file_num > 0 but dont know total in num_files, at least show count to show progress 2021-01-29 00:02:56 +11:00
18b8a30140 Fixed BUG-11: we have changed to file_refimg_link table (from file_person_link), this means we now have some optimisations, and can definitely re-run AI jobs without crashing. Several optims could still be done - see TODO 2021-01-25 01:05:30 +11:00
42b4880b62 added basic view of which files were matched with which people 2021-01-22 21:14:17 +11:00
498e3d383f put menu item in for route to wakeup of job manager 2021-01-21 01:07:21 +11:00
f7a94f0b7d allow job log to have links embedded, and label num files when N/A better 2021-01-20 21:49:04 +11:00