Skip to content
Snippets Groups Projects

Účastníkům při výběru školy nezobrazujeme skrytá místa

Merged Jiří Kalvoda requested to merge jk/hidden-place into devel
All threads resolved!
1 file
+ 2
0
Compare changes
  • Side-by-side
  • Inline
+ 2
0
@@ -27,6 +27,7 @@ def api_find_town():
places = (db.get_session().query(db.Place)
.filter_by(level=3)
.filter(func.lower(db.f_unaccent(db.Place.name)).like(func.lower(db.f_unaccent(query + '%'))))
.filter(db.Place.hidden == False)
.options(joinedload(db.Place.parent_place))
.order_by(db.Place.name, db.Place.place_id)
.limit(max_places)
@@ -59,6 +60,7 @@ def api_get_schools():
places = (db.get_session().query(db.Place)
.filter_by(level=4, type=db.PlaceType.school, parent=town_id)
.options(joinedload(db.Place.school))
.filter(db.Place.hidden == False)
.order_by(db.Place.name)
.all())
Loading