Corrected missing assignment of variable
This commit is contained in:
parent
4c0a1c8f3f
commit
3d5939ed9c
@ -373,6 +373,7 @@ def _tests():
|
|||||||
from .models.forms import CreateTest
|
from .models.forms import CreateTest
|
||||||
form = CreateTest()
|
form = CreateTest()
|
||||||
form.dataset.choices = available_datasets()
|
form.dataset.choices = available_datasets()
|
||||||
|
form.time_limit.choices = get_time_options()
|
||||||
if form.validate_on_submit():
|
if form.validate_on_submit():
|
||||||
start_date = request.form.get('start_date')
|
start_date = request.form.get('start_date')
|
||||||
start_date = datetime.strptime(start_date, '%Y-%m-%d')
|
start_date = datetime.strptime(start_date, '%Y-%m-%d')
|
||||||
|
Loading…
Reference in New Issue
Block a user