Skip to content
Snippets Groups Projects

Formulářová políčka; Přidání účastníka do soutěže; Editace registrace do ročníku

Merged Jiří Kalvoda requested to merge jk/add-contestant into devel
1 file
+ 7
0
Compare changes
  • Side-by-side
  • Inline
+ 7
0
@@ -132,6 +132,13 @@ def get_root_place():
return get_session().query(Place).filter_by(parent=None).one()
def get_place_by_id(place_id: int, fetch_school: bool = False) -> Place:
q = get_session().query(Place)
if fetch_school:
q = q.options(joinedload(Place.school))
return q.filter_by(place_id=place_id).one()
def get_place_by_code(code: str, fetch_school: bool = False) -> Optional[Place]:
code = code.strip()
if code == "":
Loading