improve length error message.

closes #5.
neingeist 3 years ago
parent ff84c8838d
commit 451f9b0f1e

@ -34,7 +34,9 @@ class DownloadForm(FlaskForm):
length = IntegerField('Länge',
validators=[
InputRequired(),
NumberRange(min=1, max=app.config['MAX_LENGTH'])])
NumberRange(
min=1, max=app.config['MAX_LENGTH'],
message="Länge muss zwischen %(min)s and %(max)s Minuten sein")])
submit = SubmitField('Download')

@ -2,3 +2,4 @@ flask
bootstrap-flask
python-dotenv
flask-wtf >= 1.0.0
WTForms >= 3.0.0

Loading…
Cancel
Save