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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Martin Mareš
Odevzdávací Systém MO
Merge requests
!86
Registrace
Code
Review changes
Check out branch
Download
Patches
Plain diff
Expand sidebar
Merged
Registrace
mj/registrace
into
devel
Overview
49
Commits
38
Changes
3
Merged
Registrace
Martin Mareš
requested to merge
mj/registrace
into
devel
Jul 13, 2021
Overview
38
Commits
38
Changes
3
Implementace registrace podle
#220 (closed)
.
Edited
Aug 19, 2021
by
Martin Mareš
0
0
Merge request reports
Viewing commit
3887bca1
Show latest version
3 files
+
4
−
4
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
3
3887bca1
Registrace: Úprava zacházení se stavy (invited -> active, present zrušen)
· 3887bca1
Martin Mareš
authored
Jul 12, 2021
mo/web/org_contest.py
+
2
−
2
View file @ 3887bca1
Edit in single-file editor
Open in Web IDE
Show full file
@@ -1497,7 +1497,7 @@ def org_contest_advance(contest_id: int):
prev_pion_query
=
(
sess
.
query
(
db
.
Participation
)
.
filter
(
db
.
Participation
.
contest_id
.
in_
([
c
.
contest_id
for
c
in
prev_contests
]))
.
filter
(
db
.
Participation
.
state
.
in_
((
db
.
PartState
.
registered
,
db
.
PartState
.
invited
,
db
.
PartState
.
present
))
))
.
filter
_by
(
state
=
db
.
PartState
.
active
))
prev_pions
=
prev_pion_query
.
all
()
if
form
.
boundary
.
data
>
0
:
@@ -1540,7 +1540,7 @@ def org_contest_advance(contest_id: int):
user_id
=
pp
.
user_id
,
contest_id
=
contest
.
contest_id
,
place_id
=
contest
.
place
.
place_id
,
state
=
db
.
PartState
.
invited
,
state
=
db
.
PartState
.
active
,
)
.
on_conflict_do_nothing
()
.
returning
(
db
.
Participation
.
contest_id
)
Loading