diff --git a/BUGs b/BUGs
index 09fa090..77b3cc3 100644
--- a/BUGs
+++ b/BUGs
@@ -1,7 +1,27 @@
-### Next: 80
+### Next: 81
BUG-56: when making a viewing list of AI:mich, (any search?) and going past the page_size, it gets the wrong data from the DB for the 'next' entry
BUG-60: entries per page (in folders view) ignores pagesize, and this also contributes to BUG-56 I think
BUG-74: search/others? remembers start/offset, and if you reset view (e.g. another search) it doesnt show first page of results
BUG-77: when moving folders out from a parent folder (storage/2020 off-camera-to-oct), it did not delete the empty 2020 off-camera-to-oct folder
-- something odd happened here, not sure it is a bug, maybe dodgy data at the time in the DB?
BUG-79: changing size does not post back the OPT change, so doesn't save to prefs (unless you change say how_many after size)
+BUG-80: viewed AI:fikkers, and next, next, etc. got this:
+ ESC[36mpaweb |ESC[0m [2022-01-16 01:19:34,305] ERROR in app: Exception on /viewlist [POST]
+ ESC[36mpaweb |ESC[0m Traceback (most recent call last):
+ ESC[36mpaweb |ESC[0m File "/usr/local/lib/python3.8/dist-packages/flask/app.py", line 2070, in wsgi_app
+ ESC[36mpaweb |ESC[0m response = self.full_dispatch_request()
+ ESC[36mpaweb |ESC[0m File "/usr/local/lib/python3.8/dist-packages/flask/app.py", line 1515, in full_dispatch_request
+ ESC[36mpaweb |ESC[0m rv = self.handle_user_exception(e)
+ ESC[36mpaweb |ESC[0m File "/usr/local/lib/python3.8/dist-packages/flask/app.py", line 1513, in full_dispatch_request
+ ESC[36mpaweb |ESC[0m rv = self.dispatch_request()
+ ESC[36mpaweb |ESC[0m File "/usr/local/lib/python3.8/dist-packages/flask/app.py", line 1499, in dispatch_request
+ ESC[36mpaweb |ESC[0m return self.ensure_sync(self.view_functions[rule.endpoint])(**req.view_args)
+ ESC[36mpaweb |ESC[0m File "/usr/local/lib/python3.8/dist-packages/flask_login/utils.py", line 272, in decorated_view
+ ESC[36mpaweb |ESC[0m return func(*args, **kwargs)
+ ESC[36mpaweb |ESC[0m File "/code/files.py", line 494, in viewlist
+ ESC[36mpaweb |ESC[0m entries=GetEntries( OPT )
+ ESC[36mpaweb |ESC[0m File "/code/files.py", line 272, in GetEntries
+ ESC[36mpaweb |ESC[0m for path in OPT.paths:
+ ESC[36mpaweb |ESC[0m TypeError: 'NoneType' object is not iterable
+
+ IT is caused by next'ing past the end of how_many, so its prob. related to BUG-56 above
diff --git a/TODO b/TODO
index ec48c2a..b8d82c3 100644
--- a/TODO
+++ b/TODO
@@ -6,9 +6,6 @@
*** Need to double-check scheduled jobs running in PROD (can use new pa_job_manager.log)
- * have a user img in rhs of navbar, as drop-down showing logged in user and allowing to view prefs as they are in DB
- (maybe set them as well, might want to tweak them one day?)
-
* only show say last week of jobs, or last 50? and archive the rest into an archived_jobs table
need scheduled jobs:
- [DONE] force scans of import/storage paths
@@ -27,11 +24,13 @@
* when hitting back button to a search, it doesnt handle the post, etc.
$(document).ready(function() {
- window.history.pushState(null, "", window.location.href);
window.onpopstate = function() {
- window.history.pushState(null, "", window.location.href);
+ # this seems to work, but feels like no protection at all???
+ # (what about back when it goes onto a POST of deleting a file!)
+ window.history.back()
};
});
+ -- maybe window.history.replace() is needed on unsafe URLs?
* delete folder
diff --git a/internal/icons.svg b/internal/icons.svg
index da3228b..68482c5 100644
--- a/internal/icons.svg
+++ b/internal/icons.svg
@@ -204,4 +204,7 @@