Remove required data validator from form

This commit is contained in:
coolneng 2020-06-13 21:23:20 +02:00
parent 7011a8f405
commit 3ca5f21774
Signed by: coolneng
GPG Key ID: 9893DA236405AF57
2 changed files with 2 additions and 3 deletions

View File

@ -1,10 +1,9 @@
from constants import DATASETS from constants import DATASETS
from flask_wtf import FlaskForm from flask_wtf import FlaskForm
from wtforms import SelectField, SubmitField from wtforms import SelectField, SubmitField
from wtforms.validators import DataRequired
# NOTE The choices should be shorter # NOTE The choices should be shorter
class DatasetForm(FlaskForm): class DatasetForm(FlaskForm):
dataset = SelectField(validators=[DataRequired()], choices=DATASETS) dataset = SelectField(choices=DATASETS)
submit = SubmitField("Submit") submit = SubmitField("Submit")

View File

@ -13,7 +13,7 @@ pkgs.mkShell {
matplotlib matplotlib
folium folium
pytest pytest
selenium beautifulsoup4
# Development tools # Development tools
black black
isort isort