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

Oprava odkazů na db.place_by_code()

parent b9682fbf
No related branches found
No related tags found
No related merge requests found
......@@ -56,7 +56,7 @@ def org_users():
participant_filter = participant_filter.filter_by(year=filter.year.data)
participant_filter_apply = True
if filter.school_code.data:
place = db.place_by_code(filter.school_code.data)
place = db.get_place_by_code(filter.school_code.data)
if place:
participant_filter = participant_filter.filter_by(school=place.place_id)
participant_filter_apply = True
......@@ -84,7 +84,7 @@ def org_users():
contest_filter = contest_filter.filter(db.Contest.round_id.in_(round_filter))
contest_filter_apply = True
if filter.contest_site_code.data:
place = db.place_by_code(filter.contest_site_code.data)
place = db.get_place_by_code(filter.contest_site_code.data)
if place:
contest_filter = contest_filter.filter_by(place_id=place.place_id)
contest_filter_apply = True
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment