From 2d153027a830209318deb25711f491bae38a1e1f Mon Sep 17 00:00:00 2001 From: neingeist Date: Sun, 11 Nov 2018 14:40:23 +0100 Subject: [PATCH] read max length from config --- prolefeeder.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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')