fixed BUG-71 - size is lost from view details

This commit is contained in:
2021-10-10 11:30:32 +11:00
parent 9e01be4c6f
commit 58889c394f
2 changed files with 5 additions and 3 deletions

3
BUGs
View File

@@ -1,4 +1,4 @@
### Next: 71
### Next: 72
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-61: in Fullscreen mode and next/prev dropped out of FS when calling /viewlist route
@@ -6,4 +6,3 @@ BUG-61: in Fullscreen mode and next/prev dropped out of FS when calling /viewlis
-- then we can stay on-page, and stay in FS and then just call ViewImageOrVide()
BUG-69: when moving a directory (maybe files???) it creates new destination directory even if one exists... not sure what the os.replace, etc. does at that point???
BUG-70: when a dir is a match and a file is a match (common with our date-based matching), then we get 2 answers in the search
BUG-71: from some views (view import details, then search) -> it loses the 'size' value and then barfs when putting an empty size val in the pa_prefs table

View File

@@ -89,7 +89,9 @@ class Options(PA):
self.how_many=request.form['how_many']
self.offset=int(request.form['offset'])
self.grouping=request.form['grouping']
self.size = request.form['size']
# this can be null if we come from view by details
if request.form['size']:
self.size = request.form['size']
# seems html cant do boolean, but uses strings so convert
if request.form['folders'] == "False":
self.folders=False
@@ -123,6 +125,7 @@ class Options(PA):
pref.st_offset=self.offset
pref.size=self.size
pref.folders=self.folders
# DDP: does this need to save changed preferences here???
db.session.add(pref)
db.session.commit()