order the file by name/date

This commit is contained in:
2021-01-28 13:10:16 +11:00
parent be1f9729b7
commit 5a8e139263

View File

@@ -90,14 +90,14 @@ class FileType(db.Model):
################################################################################ ################################################################################
@app.route("/file_list", methods=["GET"]) @app.route("/file_list", methods=["GET"])
def file_list(): def file_list():
return render_template("file_list.html", page_title='View Files (details)', entry_data=Entry.query.all()) return render_template("file_list.html", page_title='View Files (details)', entry_data=Entry.query.order_by(Entry.name).all())
################################################################################ ################################################################################
# /files -> show thumbnail view of files from import_path(s) # /files -> show thumbnail view of files from import_path(s)
################################################################################ ################################################################################
@app.route("/files", methods=["GET"]) @app.route("/files", methods=["GET"])
def files(): def files():
return render_template("files.html", page_title='View Files', entry_data=Entry.query.all()) return render_template("files.html", page_title='View Files', entry_data=Entry.query.order_by(Entry.name).all())
################################################################################ ################################################################################
# /search -> show thumbnail view of files from import_path(s) # /search -> show thumbnail view of files from import_path(s)