mirror of
https://github.com/RYGhub/royalnet.git
synced 2024-11-24 03:54:20 +00:00
Sort in alphabetical order
This commit is contained in:
parent
44132069ec
commit
2d7149ae2d
1 changed files with 2 additions and 2 deletions
|
@ -54,8 +54,8 @@ def page_500():
|
|||
def page_main():
|
||||
if fl_session.get("user_id"):
|
||||
db_session = db.Session()
|
||||
royals = db_session.query(db.Royal).all()
|
||||
wiki_pages = db_session.query(db.WikiEntry).all()
|
||||
royals = db_session.query(db.Royal).order_by(db.Royal.username).all()
|
||||
wiki_pages = db_session.query(db.WikiEntry).order_by(db.WikiEntry.key).all()
|
||||
db_session.close()
|
||||
return render_template("main.html", royals=royals, wiki_pages=wiki_pages, config=config)
|
||||
return redirect(url_for("page_login"))
|
||||
|
|
Loading…
Reference in a new issue