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

Merge branch 'master' of gitlab.kam.mff.cuni.cz:mj/mo-submit

parents 38b0d374 ce5e2a37
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): ...@@ -61,6 +61,7 @@ def change_user_to_org(user, reason: str):
if (db.get_session().query(db.Participation, db.Contest, db.Round) if (db.get_session().query(db.Participation, db.Contest, db.Round)
.select_from(db.Participation) .select_from(db.Participation)
.join(db.Contest) .join(db.Contest)
.join(db.Round)
.filter(db.Participation.user == user) .filter(db.Participation.user == user)
.filter(db.Round.year == config.CURRENT_YEAR) .filter(db.Round.year == config.CURRENT_YEAR)
.count()): .count()):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment