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
d0e06d55
Commit
d0e06d55
authored
4 months ago
by
Martin Mareš
Browse files
Options
Downloads
Patches
Plain Diff
Diplomy: Opraven pád při uploadu obrázku během založení sady diplomů
parent
b57fd9a8
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_certs.py
+4
-1
4 additions, 1 deletion
mo/web/org_certs.py
with
4 additions
and
1 deletion
mo/web/org_certs.py
+
4
−
1
View file @
d0e06d55
...
@@ -176,6 +176,10 @@ def org_certificates(ct_id: int):
...
@@ -176,6 +176,10 @@ def org_certificates(ct_id: int):
form
.
populate_obj
(
cset
)
form
.
populate_obj
(
cset
)
form
.
populate_obj
(
dparams
)
form
.
populate_obj
(
dparams
)
cset
.
design_params
=
dparams
.
to_json
()
cset
.
design_params
=
dparams
.
to_json
()
if
new_cset
:
# To je potřeba udělat už teď, protože cset.dir_path() níže potřebuje funkční relationships
sess
.
add
(
cset
)
sess
.
flush
()
if
dparams
.
background_type
==
BackgroundType
.
custom
:
if
dparams
.
background_type
==
BackgroundType
.
custom
:
if
form
.
upload_background
.
data
:
if
form
.
upload_background
.
data
:
old_background
=
cset
.
background_file
old_background
=
cset
.
background_file
...
@@ -194,7 +198,6 @@ def org_certificates(ct_id: int):
...
@@ -194,7 +198,6 @@ def org_certificates(ct_id: int):
cset
.
background_file
=
None
cset
.
background_file
=
None
changes
=
None
changes
=
None
if
new_cset
:
if
new_cset
:
sess
.
add
(
cset
)
mo
.
util
.
log
(
mo
.
util
.
log
(
type
=
db
.
LogType
.
cert_set
,
type
=
db
.
LogType
.
cert_set
,
what
=
contest
.
contest_id
,
what
=
contest
.
contest_id
,
...
...
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