pass noo into render html files
This commit is contained in:
3
files.py
3
files.py
@@ -104,7 +104,6 @@ def files():
|
|||||||
noo="Oldest"
|
noo="Oldest"
|
||||||
grouping="Day"
|
grouping="Day"
|
||||||
how_many="50"
|
how_many="50"
|
||||||
|
|
||||||
offset=0
|
offset=0
|
||||||
|
|
||||||
if request.method=="POST":
|
if request.method=="POST":
|
||||||
@@ -124,7 +123,7 @@ def files():
|
|||||||
entries=Entry.query.join(File).order_by(File.year,File.month,File.day,Entry.name).offset(offset).limit(how_many).all()
|
entries=Entry.query.join(File).order_by(File.year,File.month,File.day,Entry.name).offset(offset).limit(how_many).all()
|
||||||
else:
|
else:
|
||||||
entries=Entry.query.join(File).order_by(File.year.desc(),File.month.desc(),File.day.desc(),Entry.name).offset(offset).limit(how_many).all()
|
entries=Entry.query.join(File).order_by(File.year.desc(),File.month.desc(),File.day.desc(),Entry.name).offset(offset).limit(how_many).all()
|
||||||
return render_template("files.html", page_title='View Files', entry_data=entries, grouping=grouping, how_many=how_many, offset=offset, form=request.form )
|
return render_template("files.html", page_title='View Files', entry_data=entries, noo=noo, grouping=grouping, how_many=how_many, offset=offset )
|
||||||
|
|
||||||
################################################################################
|
################################################################################
|
||||||
# /search -> show thumbnail view of files from import_path(s)
|
# /search -> show thumbnail view of files from import_path(s)
|
||||||
|
|||||||
Reference in New Issue
Block a user