Skip to content
Snippets Groups Projects

Draft: Dělená kola

1 file
+ 2
2
Compare changes
  • Side-by-side
  • Inline
@@ -281,7 +281,7 @@ def contest_breadcrumbs(
if round:
round_id = round.round_id
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}'))
else:
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):
sess.query(db.Place, func.count('*'))
.select_from(db.Participation).join(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(
Loading