Skip to content
Snippets Groups Projects
Commit bd63e9d4 authored by Jan Prachař's avatar Jan Prachař
Browse files

org_user: order participants same as participations

parent 67acac2c
Branches
No related tags found
No related merge requests found
......@@ -370,7 +370,11 @@ def org_user(id: int):
resend_invite_form.do(user)
return redirect(url_for('org_user', id=id))
participants = sess.query(db.Participant).filter_by(user_id=user.user_id)
participants = (
sess.query(db.Participant)
.filter_by(user_id=user.user_id)
.order_by(db.Participant.year.desc())
)
participations = (
sess.query(db.Participation, db.Contest, db.Round)
.select_from(db.Participation)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment