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

Orgovská homepage: Přehled neukazuje zbytečné odkazy

Hierarchický odkaz se objeví jen tehdy, je-li úroveň kola ostře
mělčí než úroveň práva.
parent fa07bae8
No related branches found
No related tags found
No related merge requests found
...@@ -63,6 +63,8 @@ def org_index(): ...@@ -63,6 +63,8 @@ def org_index():
overview: List[OrgOverview] = [] overview: List[OrgOverview] = []
for r, ct, ur in rcu: for r, ct, ur in rcu:
if ct is None and ur.place.level == r.level:
continue
o = overview[-1] if overview else None o = overview[-1] if overview else None
if not (o and o.round == r and o.place == ur.place): if not (o and o.round == r and o.place == ur.place):
o = OrgOverview(round=r, place=ur.place, contest=ct) o = OrgOverview(round=r, place=ur.place, contest=ct)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment