diff --git a/prolefeeder.py b/prolefeeder.py index 1de9ba8..d7d0420 100644 --- a/prolefeeder.py +++ b/prolefeeder.py @@ -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')