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
8e5de49b
Commit
8e5de49b
authored
3 years ago
by
Martin Mareš
Browse files
Options
Downloads
Patches
Plain Diff
create-round: Kód kola
parent
cdf28165
Branches
Branches containing commit
No related tags found
1 merge request
!97
Import orgů
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
bin/create-round
+2
-0
2 additions, 0 deletions
bin/create-round
with
2 additions
and
0 deletions
bin/create-round
+
2
−
0
View file @
8e5de49b
...
...
@@ -10,6 +10,7 @@ parser = argparse.ArgumentParser(description='Založí soutěžní kolo')
parser
.
add_argument
(
'
-y
'
,
'
--year
'
,
type
=
int
,
required
=
True
,
help
=
'
ročník
'
)
parser
.
add_argument
(
'
-c
'
,
'
--cat
'
,
type
=
str
,
required
=
True
,
help
=
'
kategorie
'
)
parser
.
add_argument
(
'
-s
'
,
'
--seq
'
,
type
=
int
,
required
=
True
,
help
=
'
pořadí kola
'
)
parser
.
add_argument
(
'
-C
'
,
'
--code
'
,
type
=
str
,
help
=
'
kód kola (default: roven pořadí)
'
)
parser
.
add_argument
(
'
-l
'
,
'
--level
'
,
type
=
int
,
required
=
True
,
help
=
'
úroveň v hierarchii oblastí
'
)
parser
.
add_argument
(
'
-p
'
,
'
--part
'
,
type
=
int
,
default
=
0
,
help
=
'
část v rámci skupiny kol (default: 0)
'
)
parser
.
add_argument
(
'
-n
'
,
'
--name
'
,
type
=
str
,
required
=
True
,
help
=
'
název kola
'
)
...
...
@@ -33,6 +34,7 @@ rnd = db.Round(
year
=
args
.
year
,
category
=
args
.
cat
,
seq
=
args
.
seq
,
code
=
args
.
code
or
str
(
args
.
seq
),
part
=
args
.
part
,
level
=
args
.
level
,
name
=
args
.
name
,
...
...
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