Skip to content
Snippets Groups Projects
Commit e99921c1 authored by Martin Mareš's avatar Martin Mareš Committed by Jan Prachař
Browse files

Účastnická část webu nehledá v DB zprávičky, jsou-li v kole vypnuté

parent 8e1dbf35
Branches
No related tags found
No related merge requests found
......@@ -349,7 +349,10 @@ def user_contest_task(contest_id: int, task_id: int):
task = get_task(contest, task_id)
sess = db.get_session()
if contest.round.has_messages:
messages = sess.query(db.Message).filter_by(round_id=contest.round_id).order_by(db.Message.created_at).all()
else:
messages = None
state = contest.ct_state()
if state == db.RoundState.preparing:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment