debugs / comments
This commit is contained in:
5
files.py
5
files.py
@@ -132,10 +132,10 @@ def ViewingOptions( request ):
|
|||||||
how_many="50"
|
how_many="50"
|
||||||
offset=0
|
offset=0
|
||||||
size=128
|
size=128
|
||||||
print( f"ViewingOptions( {request.method} )" )
|
|
||||||
if 'files_sp' in request.path:
|
if 'files_sp' in request.path:
|
||||||
folders=True
|
folders=True
|
||||||
cwd='static/storage'
|
# this is the default as 'Storage' is the path_type in the DB
|
||||||
|
cwd='static/Storage'
|
||||||
else:
|
else:
|
||||||
folders=False
|
folders=False
|
||||||
cwd=None
|
cwd=None
|
||||||
@@ -153,7 +153,6 @@ def ViewingOptions( request ):
|
|||||||
folders=True
|
folders=True
|
||||||
|
|
||||||
cwd = request.form['cwd']
|
cwd = request.form['cwd']
|
||||||
print( f"setting cwd basedon form: {cwd}" )
|
|
||||||
if 'prev' in request.form:
|
if 'prev' in request.form:
|
||||||
offset -= int(how_many)
|
offset -= int(how_many)
|
||||||
if offset < 0:
|
if offset < 0:
|
||||||
|
|||||||
Reference in New Issue
Block a user