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

Fixup!

parent 11a257a5
Branches
No related tags found
No related merge requests found
......@@ -515,7 +515,7 @@ def check_round_settings(round: db.Round, form: RoundEditForm) -> List[str]:
if _time_crossed(form.ct_tasks_start, form.pr_submit_end):
errors.append('Odevzdávání pro dozor skončí dřív než soutěž začne.')
if form.export_score_to_mo_web.data and form.round_type.data == db.RoundType.other:
if hasattr(form, 'export_score_to_mo_web') and form.export_score_to_mo_web.data and form.round_type.data == db.RoundType.other:
errors.append('Není možné publikovat výsledkovou listinu na webu MO, když není nastaven typ kola.')
errors.extend(check_contest_state(round, None, state))
......
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment