remember orig_url properly in OPT so that viewlist knows if we were originall import or storage for GetEntries to continue the list

This commit is contained in:
2021-09-22 18:43:01 +10:00
parent d422fdf3ad
commit e07d6c462b
4 changed files with 10 additions and 18 deletions

17
BUGs
View File

@@ -3,22 +3,5 @@ BUG-56: when making a viewing list of AI:mich, (any search?) and going past the
BUG-60: entries per page (in folders view) ignores pagesize, and this also contributes to BUG-56 I think BUG-60: entries per page (in folders view) ignores pagesize, and this also contributes to BUG-56 I think
BUG-61: in Fullscreen mode and next/prev occasionally dropped out of FS BUG-61: in Fullscreen mode and next/prev occasionally dropped out of FS
this is just another consequence of going beyond Pagesize, when we get new entries from DB, it loses FS flag this is just another consequence of going beyond Pagesize, when we get new entries from DB, it loses FS flag
BUG-62: viewlist on venice subdir and 'next' crashes server with a 500
ESC[36mpaweb |ESC[0m [2021-09-19 12:00:06,477] 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 478, in viewlist
ESC[36mpaweb |ESC[0m current = int(lst[0])
ESC[36mpaweb |ESC[0m ValueError: invalid literal for int() with base 10: ''
BUG-64: seems when we move files, then somehow this triggers a lot of md5/thumb action (just for the moved files?) as they get a new? FILE entry -- why do I do that if that is the case, BUG-64: seems when we move files, then somehow this triggers a lot of md5/thumb action (just for the moved files?) as they get a new? FILE entry -- why do I do that if that is the case,
the file, hash, thumb, faces, etc. should all still be connected to the FILE entry and just make it have a new home... the file, hash, thumb, faces, etc. should all still be connected to the FILE entry and just make it have a new home...

8
TODO
View File

@@ -1,4 +1,7 @@
## GENERAL ## GENERAL
* check for: 20180628_162833.jpg
-- thumb not rotated, presume its the if jpeg rotate code, so is this not a jpeg?
* ai search, should put 'all' at top of drop-down * ai search, should put 'all' at top of drop-down
* when there is an actual error sent from B/E to F/E, you can't clear it other than deleting via sql * when there is an actual error sent from B/E to F/E, you can't clear it other than deleting via sql
@@ -31,6 +34,11 @@
* fix up logging in general * fix up logging in general
* metadata at folder level with file level to add more richness * metadata at folder level with file level to add more richness
* support animated gifs in html5 canvas
* if a video is really mostly black, then we dont get a thumbnail... (see: 20210526_205257_01.mp4)
## DB ## DB
* Dir can have date in the DB, so we can do Oldest/Newest dirs in Folder view * Dir can have date in the DB, so we can do Oldest/Newest dirs in Folder view

View File

@@ -35,6 +35,7 @@ class Options(PA):
url = request.form['orig_url'] url = request.form['orig_url']
else: else:
url = request.path url = request.path
self.orig_url=url
if 'files_sp' in url: if 'files_sp' in url:
self.path_type = 'Storage' self.path_type = 'Storage'
self.paths = SettingsSPath() self.paths = SettingsSPath()

View File

@@ -62,7 +62,7 @@
s+='<input type="hidden" name="offset" value="{{OPT.offset}}">' s+='<input type="hidden" name="offset" value="{{OPT.offset}}">'
s+='<input type="hidden" name="folders" value="{{OPT.folders}}">' s+='<input type="hidden" name="folders" value="{{OPT.folders}}">'
s+='<input type="hidden" name="how_many" value="{{OPT.how_many}}">' s+='<input type="hidden" name="how_many" value="{{OPT.how_many}}">'
s+='<input type="hidden" name="orig_url" value="{{request.path}}">' s+='<input type="hidden" name="orig_url" value="{{OPT.orig_url}}">'
s+='<input type="hidden" name="' + dir + '" value="1">' s+='<input type="hidden" name="' + dir + '" value="1">'
{% if search_term is defined %} {% if search_term is defined %}
s+='<input type="hidden" name="search_term" value="{{search_term}}">' s+='<input type="hidden" name="search_term" value="{{search_term}}">'