Skip to content
Snippets Groups Projects
Commit e2bcbb26 authored by Martin Mareš's avatar Martin Mareš
Browse files

User index: Třídění kol

parent 94177a01
No related branches found
No related tags found
1 merge request!9WIP: Zárodek uživatelské části webu a submitování
...@@ -30,6 +30,7 @@ def user_index(): ...@@ -30,6 +30,7 @@ def user_index():
.filter(db.Participation.user == g.user) .filter(db.Participation.user == g.user)
.filter(db.Round.state != db.RoundState.preparing) .filter(db.Round.state != db.RoundState.preparing)
.options(joinedload(db.Contest.place)) .options(joinedload(db.Contest.place))
.order_by(db.Round.year.desc(), db.Round.category, db.Round.seq)
.all()) .all())
return render_template( return render_template(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment