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
Commits
4414058a
Commit
4414058a
authored
3 years ago
by
Martin Mareš
Browse files
Options
Downloads
Patches
Plain Diff
Akce na seznamu účastníků: Ošetřeno nevyplnění políčka
parent
9e01c41b
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
+6
-0
6 additions, 0 deletions
mo/web/org_contest.py
with
6 additions
and
0 deletions
mo/web/org_contest.py
+
6
−
0
View file @
4414058a
...
@@ -266,8 +266,14 @@ class ParticipantsActionForm(FlaskForm):
...
@@ -266,8 +266,14 @@ class ParticipantsActionForm(FlaskForm):
pass
pass
elif
self
.
set_participation_place
.
data
:
elif
self
.
set_participation_place
.
data
:
participation_place
=
self
.
participation_place
.
place
participation_place
=
self
.
participation_place
.
place
if
not
participation_place
:
flash
(
'
Nebylo zadáno žádné soutěžní místo.
'
,
'
danger
'
)
return
False
elif
self
.
set_contest
.
data
:
elif
self
.
set_contest
.
data
:
contest_place
=
self
.
contest_place
.
place
contest_place
=
self
.
contest_place
.
place
if
not
contest_place
:
flash
(
'
Nebylo zadáno žádné místo konání soutěže.
'
,
'
danger
'
)
return
False
# Contest hledáme vždy v master kole, abychom náhodou nepřesunuli účastníky do soutěže v podkole
# Contest hledáme vždy v master kole, abychom náhodou nepřesunuli účastníky do soutěže v podkole
contest
=
sess
.
query
(
db
.
Contest
).
filter_by
(
round_id
=
round
.
master_round_id
,
place_id
=
contest_place
.
place_id
).
one_or_none
()
contest
=
sess
.
query
(
db
.
Contest
).
filter_by
(
round_id
=
round
.
master_round_id
,
place_id
=
contest_place
.
place_id
).
one_or_none
()
if
not
contest
:
if
not
contest
:
...
...
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