Skip to content
Snippets Groups Projects

Reforma orgovského rozhraní ke kolům a soutěžím

Merged Martin Mareš requested to merge mj/contest-reform into devel
1 file
+ 5
0
Compare changes
  • Side-by-side
  • Inline
+ 5
0
@@ -307,6 +307,11 @@ class Gatekeeper:
self.parent_cache[pid] = db.get_place_parents(place)
return self.parent_cache[pid]
def is_ancestor_of(self, ancestor: db.Place, of: db.Place) -> bool:
parents = self.get_parents(of)
parent_ids = set(p.place_id for p in parents)
return ancestor.place_id in parent_ids
def rights_for(
self, place: Optional[db.Place] = None, year: Optional[int] = None,
cat: Optional[str] = None, seq: Optional[int] = None,
Loading