|
|
@ -20,10 +20,13 @@ Bootstrap(app)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class DownloadForm(FlaskForm):
|
|
|
|
class DownloadForm(FlaskForm):
|
|
|
|
start_time = DateTimeField('Start time', validators=[InputRequired()],
|
|
|
|
start_time = DateTimeField('Start time',
|
|
|
|
|
|
|
|
validators=[InputRequired()],
|
|
|
|
format='%Y-%m-%d %H:%M')
|
|
|
|
format='%Y-%m-%d %H:%M')
|
|
|
|
length = IntegerField('Length', validators=[InputRequired(),
|
|
|
|
length = IntegerField('Length',
|
|
|
|
NumberRange(min=1, max=app.config['MAX_LENGTH'])])
|
|
|
|
validators=[
|
|
|
|
|
|
|
|
InputRequired(),
|
|
|
|
|
|
|
|
NumberRange(min=1, max=app.config['MAX_LENGTH'])])
|
|
|
|
submit = SubmitField('Download')
|
|
|
|
submit = SubmitField('Download')
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|