Skip to content
Snippets Groups Projects

Dávkové bodování

Merged Martin Mareš requested to merge mj/batch-points into master
All threads resolved!
1 file
+ 2
1
Compare changes
  • Side-by-side
  • Inline
+ 2
1
@@ -32,7 +32,8 @@ class ImportForm(FlaskForm):
@@ -32,7 +32,8 @@ class ImportForm(FlaskForm):
file = flask_wtf.file.FileField("Soubor")
file = flask_wtf.file.FileField("Soubor")
typ = wtforms.SelectField(
typ = wtforms.SelectField(
"Typ dat",
"Typ dat",
choices=ImportType.choices(), coerce=ImportType.coerce,
choices=[(x.name, x.friendly_name()) for x in (ImportType.participants, ImportType.proctors, ImportType.judges)],
 
coerce=ImportType.coerce,
default=ImportType.participants,
default=ImportType.participants,
)
)
fmt = wtforms.SelectField(
fmt = wtforms.SelectField(
Loading