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
f3236e88
Commit
f3236e88
authored
4 months ago
by
Martin Mareš
Browse files
Options
Downloads
Patches
Plain Diff
Oprava --publish-score u bin/set-round a bin/create-round
parent
740fb162
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/arg_attrs.py
+2
-1
2 additions, 1 deletion
mo/arg_attrs.py
with
2 additions
and
1 deletion
mo/arg_attrs.py
+
2
−
1
View file @
f3236e88
...
...
@@ -49,6 +49,7 @@ class Attr:
def
args_to_obj
(
self
,
args
:
argparse
.
Namespace
,
obj
:
Any
)
->
None
:
key
=
self
.
long
.
replace
(
'
-
'
,
'
_
'
)
if
self
.
long
else
self
.
name
val
=
getattr
(
args
,
key
)
assert
hasattr
(
obj
,
self
.
name
)
if
val
is
not
Ellipsis
:
setattr
(
obj
,
self
.
name
,
val
)
...
...
@@ -130,7 +131,7 @@ ROUND_ATTRS = AttrList([
Attr
(
'
enroll_deadline
'
,
parse_time
,
'
deadline přihlašování
'
,
nullable
=
True
),
Attr
(
'
min_rec_grade
'
,
int
,
'
minimální doporučený ročník (1-12)
'
,
nullable
=
True
),
Attr
(
'
max_rec_grade
'
,
int
,
'
maximální doporučený ročník (1-12)
'
,
nullable
=
True
),
Attr
(
'
export_score_to_web
'
,
parse_bool
,
'
exportovat výsledkovky na web
'
,
long
=
'
publish-score
'
),
Attr
(
'
export_score_to_
mo_
web
'
,
parse_bool
,
'
exportovat výsledkovky na web
'
,
long
=
'
publish-score
'
),
])
...
...
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