From 09a099cc3456c6b16b0544dd816508f1c90ec1a7 Mon Sep 17 00:00:00 2001 From: Damien De Paoli Date: Tue, 2 Feb 2021 00:20:32 +1100 Subject: [PATCH] pass noo into render html files --- files.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/files.py b/files.py index 7aa7484..6dad0df 100644 --- a/files.py +++ b/files.py @@ -104,7 +104,6 @@ def files(): noo="Oldest" grouping="Day" how_many="50" - offset=0 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() 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() - 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)