From 3ca5f21774543edc71ca6ab64fdd1b3cf9fb9acf Mon Sep 17 00:00:00 2001 From: coolneng Date: Sat, 13 Jun 2020 21:23:20 +0200 Subject: [PATCH] Remove required data validator from form --- app/forms.py | 3 +-- shell.nix | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/app/forms.py b/app/forms.py index 1ecae15..82fe86b 100644 --- a/app/forms.py +++ b/app/forms.py @@ -1,10 +1,9 @@ from constants import DATASETS from flask_wtf import FlaskForm from wtforms import SelectField, SubmitField -from wtforms.validators import DataRequired # NOTE The choices should be shorter class DatasetForm(FlaskForm): - dataset = SelectField(validators=[DataRequired()], choices=DATASETS) + dataset = SelectField(choices=DATASETS) submit = SubmitField("Submit") diff --git a/shell.nix b/shell.nix index ec4e926..541c523 100644 --- a/shell.nix +++ b/shell.nix @@ -13,7 +13,7 @@ pkgs.mkShell { matplotlib folium pytest - selenium + beautifulsoup4 # Development tools black isort