|
|
@ -20,9 +20,12 @@ 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',
|
|
|
|
|
|
|
|
validators=[
|
|
|
|
|
|
|
|
InputRequired(),
|
|
|
|
NumberRange(min=1, max=app.config['MAX_LENGTH'])])
|
|
|
|
NumberRange(min=1, max=app.config['MAX_LENGTH'])])
|
|
|
|
submit = SubmitField('Download')
|
|
|
|
submit = SubmitField('Download')
|
|
|
|
|
|
|
|
|
|
|
|