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

Pokud je kolo "po oblastech", nově založené soutěže mají stav "běží"

To je o něco funkčnější než "připravuje se", ale chtělo by to lepší
řešení. Viz Issue #338.
parent b89b228c
Branches
No related tags found
No related merge requests found
...@@ -16,7 +16,7 @@ def add_contest(master_round: db.Round, place: db.Place, reason: str, gatekeeper ...@@ -16,7 +16,7 @@ def add_contest(master_round: db.Round, place: db.Place, reason: str, gatekeeper
if master_round.state != db.RoundState.delegate: if master_round.state != db.RoundState.delegate:
state = master_round.state state = master_round.state
else: else:
state = db.RoundState.preparing state = db.RoundState.running
# Soutěž vytvoříme vždy v hlavním kole # Soutěž vytvoříme vždy v hlavním kole
contest = db.Contest(round=master_round, place=place, state=state) contest = db.Contest(round=master_round, place=place, state=state)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment