Commit Graph

289 Commits

Author SHA1 Message Date
Damien De Paoli
4042fdef77 put explicit use of locahost:5432 for pg, and localhost:5000 for flask for lappy 2021-02-27 10:57:57 +11:00
Damien De Paoli
a82226b082 use DB_URL from shared 2021-02-27 10:57:27 +11:00
Damien De Paoli
f7d78c2257 also need flask 2021-02-27 00:22:02 +11:00
fe1c01e2f4 fixed issue where we cant do for loop over os.walk more than once, so now convert it to a list, and then go through that once to get overal_file_cnt, and then commit this to the job and Dir structure so that it is known on the joblog page, e.g. we get the progress bar on the first import once the os.walk is finished. Also cleaned the code to remove unnecessary string manipulation around symlink name in loop, it cant happen there. Finally updated TODO to remove this todo item (progress bar on first import) and a few other old TODOs, added new section on scanning storage_dir, the next big thing... 2021-02-22 18:24:34 +11:00
1320ecba20 fixed BUG-24, only appends per_path_dups if we have one to append 2021-02-22 18:22:18 +11:00
2482a2e829 fixed BUG-24, only appends per_path_dups if we have one to append 2021-02-22 17:26:32 +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
e13f44810d more bugs 2021-02-21 15:33:24 +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
26c2ef717c cleaned up some debugs, added logs and finally committed code that does its best to make sure the os.remove(file) matches the duplicate detected, and it now actually does the file remove 2021-02-17 21:46:29 +11:00
6ef383f732 update status message to link to job created for del dup files 2021-02-17 21:42:59 +11:00
03ddbb1c90 display logs ordered by log_date 2021-02-17 21:35:53 +11:00
9e84236f49 moved to storing DB ids rather than names of files/dirs for deletions 2021-02-14 16:20:48 +11:00
7fa0d3e02b fixed primary key bug with PA_JobManager_FE_Message, made Message return id, so it can be used in link to rm_dups, added in code to have rm_dups as a job, it does everthing but the actual deletes now, but the data is ready to be used 2021-02-14 16:20:17 +11:00
0bfd3b58b3 moved to storing DB ids rather than names of files/dirs for deletions 2021-02-14 16:18:22 +11:00
d9a94ff5da allow NewJob to have job extras added 2021-02-14 16:02:41 +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
039b6fd805 value with hashes is large for job extra, so remove 1024 limit 2021-02-14 16:01:53 +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
7014eb0f35 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:08 +11:00
0fe5d97317 fix missing self. in prints of Settings __repr__ 2021-02-13 20:19:14 +11:00
236beb70d8 minor formatting fix 2021-02-13 20:18:55 +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
2d88403756 new BUG-21: second pass, the file structures in the DB are broken 2021-02-11 20:07:15 +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
941890c55f placholder for move_files route 2021-02-07 20:42:59 +11:00
1795e91126 hard hacked a class modifier in CreateSelect(), should make it a param 2021-02-07 20:42:41 +11:00
e06006cddd old todo removed 2021-02-07 20:42:13 +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
a60017e7ce updated todo, now have selection code in, but need to start to think of storage_dir/path 2021-02-06 16:57:47 +11:00
dac9862171 created a highlight style in the bootstrap info colour 2021-02-06 16:20:47 +11:00
1caff5c9ae adding TODO for ui selection 2021-02-05 17:36:09 +11:00
1e219fd2b8 now keep size over reloads of page, its hacky though 2021-02-02 01:15:28 +11:00
bca8aed31b done viewer item 2021-02-02 00:25:43 +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
09a099cc34 pass noo into render html files 2021-02-02 00:20:32 +11:00
96bcada5c5 CreateSelect() in py called in jinja to neaten up selects 2021-02-02 00:18:52 +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
2a5f607597 updated instructions to use full paths, and extra step to mv backup to a non-generic name 2021-02-01 23:10:51 +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
ffa4fa2f10 update new timing info 2021-01-31 18:17:27 +11:00
552ea7e614 keep last form values 2021-01-31 18:17:16 +11:00
4fe74c02bb keep last form values and fix month -> Month in oldest / if 2021-01-31 18:16:55 +11:00