Skip to content
Snippets Groups Projects
Commit bf12aac7 authored by Jiří Setnička's avatar Jiří Setnička
Browse files

contest FIX

parent 111c8c5a
No related branches found
No related tags found
1 merge request!38Draft: Dělená kola
This commit is part of merge request !38. Comments created here will be created in the context of that merge request.
...@@ -281,7 +281,7 @@ def contest_breadcrumbs( ...@@ -281,7 +281,7 @@ def contest_breadcrumbs(
if round: if round:
round_id = round.round_id round_id = round.round_id
if round.is_subround(): if round.is_subround():
elements.append((url_for('org_round', id=round.parent_id), round.round_code())) elements.append((url_for('org_round', id=round.master_round_id), round.round_code()))
elements.append((url_for('org_round', id=round_id), f'Podkolo {round.name}')) elements.append((url_for('org_round', id=round_id), f'Podkolo {round.name}'))
else: else:
elements.append((url_for('org_round', id=round_id), round.round_code())) elements.append((url_for('org_round', id=round_id), round.round_code()))
...@@ -346,7 +346,7 @@ def org_contest(id: int, site_id: Optional[int] = None): ...@@ -346,7 +346,7 @@ def org_contest(id: int, site_id: Optional[int] = None):
sess.query(db.Place, func.count('*')) sess.query(db.Place, func.count('*'))
.select_from(db.Participation).join(db.Place) .select_from(db.Participation).join(db.Place)
.group_by(db.Place) .group_by(db.Place)
.filter(db.Participation.contest_id == id).all() .filter(db.Participation.contest_id == contest.master_contest_id).all()
) )
return render_template( return render_template(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment