Bugfix default datetime
This commit is contained in:
parent
ff5b19fa0b
commit
bc5ec44145
@ -258,8 +258,8 @@ def _tests(filter:str=None):
|
|||||||
if filter not in ['create','active','scheduled','expired','all']: return redirect(url_for('admin._tests', filter='active'))
|
if filter not in ['create','active','scheduled','expired','all']: return redirect(url_for('admin._tests', filter='active'))
|
||||||
if filter == 'create':
|
if filter == 'create':
|
||||||
form = CreateTest()
|
form = CreateTest()
|
||||||
form.start_date = datetime.now()
|
form.start_date.default = datetime.now()
|
||||||
form.expiry_date = date.today() + timedelta(days=1)
|
form.expiry_date.default = date.today() + timedelta(days=1)
|
||||||
form.time_limit.choices = get_time_options()
|
form.time_limit.choices = get_time_options()
|
||||||
form.dataset.choices = get_dataset_choices()
|
form.dataset.choices = get_dataset_choices()
|
||||||
form.time_limit.default='none'
|
form.time_limit.default='none'
|
||||||
|
Loading…
Reference in New Issue
Block a user