read max length from config

stable
neingeist 6 years ago
parent 79c8b6d5c6
commit 2d153027a8

@ -18,7 +18,7 @@ Bootstrap(app)
class DownloadForm(FlaskForm):
start_time = DateTimeField('Start time', validators=[DataRequired()])
length = DecimalField('Length', validators=[DataRequired(),
NumberRange(min=1, max=180)])
NumberRange(min=1, max=app.config['MAX_LENGTH'])])
submit = SubmitField('Download')

Loading…
Cancel
Save