diff --git a/mo/web/org_contest.py b/mo/web/org_contest.py index 6e459012a2927b9840045bc59aa85f5561e1fdce..e939b3d3d92a4a462650ce647a10427f1d4a62cb 100644 --- a/mo/web/org_contest.py +++ b/mo/web/org_contest.py @@ -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(