From cd872cb6806cebf4160065dee07330091e0a9e03 Mon Sep 17 00:00:00 2001 From: Martin Mares <mj@ucw.cz> Date: Sun, 3 Jan 2021 20:24:38 +0100 Subject: [PATCH] =?UTF-8?q?Oprava=20odkaz=C5=AF=20na=20db.place=5Fby=5Fcod?= =?UTF-8?q?e()?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mo/web/org_users.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mo/web/org_users.py b/mo/web/org_users.py index 09b301f4..59c7993b 100644 --- a/mo/web/org_users.py +++ b/mo/web/org_users.py @@ -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 -- GitLab