Skip to content
Snippets Groups Projects
Commit 9a6e64e0 authored by Jiří Setnička's avatar Jiří Setnička
Browse files

Postup účastníků - oprava kontroly existence pole

Potřebujeme rozlišovat prázdné pole a None.
parent f0165dc1
No related branches found
No related tags found
1 merge request!105Zjednoznačnění výsledkovky & postup výběrem
...@@ -1462,7 +1462,7 @@ def org_contest_advance(ct_id: int): ...@@ -1462,7 +1462,7 @@ def org_contest_advance(ct_id: int):
for pp in prev_pions: for pp in prev_pions:
# This incurs no real queries as we have all the contests cached # This incurs no real queries as we have all the contests cached
prev_place_id = sess.query(db.Contest).get(pp.contest_id).place_id prev_place_id = sess.query(db.Contest).get(pp.contest_id).place_id
if accept_uids and pp.user_id not in accept_uids: if accept_uids is not None and pp.user_id not in accept_uids:
reject_by_place_id[prev_place_id] += 1 reject_by_place_id[prev_place_id] += 1
continue continue
accept_by_place_id[prev_place_id] += 1 accept_by_place_id[prev_place_id] += 1
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment