order the file by name/date
This commit is contained in:
4
files.py
4
files.py
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user