diff --git a/prolefeeder.py b/prolefeeder.py index fdb43fd..61a1cc7 100644 --- a/prolefeeder.py +++ b/prolefeeder.py @@ -20,10 +20,13 @@ Bootstrap(app) class DownloadForm(FlaskForm): - start_time = DateTimeField('Start time', validators=[InputRequired()], + start_time = DateTimeField('Start time', + validators=[InputRequired()], format='%Y-%m-%d %H:%M') - length = IntegerField('Length', validators=[InputRequired(), - NumberRange(min=1, max=app.config['MAX_LENGTH'])]) + length = IntegerField('Length', + validators=[ + InputRequired(), + NumberRange(min=1, max=app.config['MAX_LENGTH'])]) submit = SubmitField('Download')