Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Odevzdávací Systém MO
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Martin Mareš
Odevzdávací Systém MO
Commits
cfe3c1f8
Commit
cfe3c1f8
authored
4 years ago
by
Martin Mareš
Browse files
Options
Downloads
Patches
Plain Diff
Postup: Správné oblasti
pion.place_id je soutěžní místo, nikoliv oblast.
parent
b5b613ea
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
mo/web/org_contest.py
+4
-2
4 additions, 2 deletions
mo/web/org_contest.py
with
4 additions
and
2 deletions
mo/web/org_contest.py
+
4
−
2
View file @
cfe3c1f8
...
...
@@ -1268,10 +1268,12 @@ def org_contest_advance(contest_id: int):
really_inserted
=
0
for
pp
in
prev_pions
:
# 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
if
accept_uids
and
pp
.
user_id
not
in
accept_uids
:
reject_by_place_id
[
p
p
.
place_id
]
+=
1
reject_by_place_id
[
p
rev_
place_id
]
+=
1
continue
accept_by_place_id
[
p
p
.
place_id
]
+=
1
accept_by_place_id
[
p
rev_
place_id
]
+=
1
if
want_execute
:
# ORM neumí ON CONFLICT DO NOTHING, takže musíme o vrstvu níže
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment