diff --git a/app/blueprints/packages/reviews.py b/app/blueprints/packages/reviews.py index 24983dd5..3916a59a 100644 --- a/app/blueprints/packages/reviews.py +++ b/app/blueprints/packages/reviews.py @@ -41,7 +41,7 @@ def list_reviews(): class ReviewForm(FlaskForm): - title = StringField(lazy_gettext("Title"), [InputRequired(), Length(3,100)]) + title = StringField(lazy_gettext("Title"), [InputRequired(), Length(3, 100)]) comment = TextAreaField(lazy_gettext("Comment"), [InputRequired(), Length(10, 2000)]) rating = RadioField(lazy_gettext("Rating"), [InputRequired()], choices=[("5", lazy_gettext("Yes")), ("3", lazy_gettext("Neutral")), ("1", lazy_gettext("No"))]) diff --git a/app/blueprints/threads/__init__.py b/app/blueprints/threads/__init__.py index aa6756d5..839fc706 100644 --- a/app/blueprints/threads/__init__.py +++ b/app/blueprints/threads/__init__.py @@ -177,8 +177,8 @@ def delete_reply(id): class CommentForm(FlaskForm): - comment = TextAreaField(lazy_gettext("Comment"), [InputRequired(), Length(10, 2000)]) - submit = SubmitField(lazy_gettext("Comment")) + comment = TextAreaField(lazy_gettext("Comment"), [InputRequired(), Length(2, 2000)]) + submit = SubmitField(lazy_gettext("Comment")) @bp.route("/threads//edit/", methods=["GET", "POST"])