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)