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

Povyšování na orga odmítalo účastníky s účastí ve starších ročnících

parent d329e5f2
No related branches found
No related tags found
No related merge requests found
......@@ -61,6 +61,7 @@ def change_user_to_org(user, reason: str):
if (db.get_session().query(db.Participation, db.Contest, db.Round)
.select_from(db.Participation)
.join(db.Contest)
.join(db.Round)
.filter(db.Participation.user == user)
.filter(db.Round.year == config.CURRENT_YEAR)
.count()):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment