order jobs by descending order, more useful to see newest at top

This commit is contained in:
2021-01-25 10:44:13 +11:00
parent 09b6863f0c
commit ec4033e0fa

2
job.py
View File

@@ -89,7 +89,7 @@ def NewJob(name, num_files="0", wait_for=None ):
@app.route("/jobs", methods=["GET"])
def jobs():
page_title='Job list'
jobs = Job.query.order_by(Job.id).all()
jobs = Job.query.order_by(Job.id.desc()).all()
return render_template("jobs.html", jobs=jobs, page_title=page_title)