aboutsummaryrefslogtreecommitdiff
path: root/forms.py
diff options
context:
space:
mode:
Diffstat (limited to 'forms.py')
-rw-r--r--forms.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/forms.py b/forms.py
index 804a0f2..e31befd 100644
--- a/forms.py
+++ b/forms.py
@@ -1,8 +1,6 @@
1import flask_wtf, wtforms 1import flask_wtf, wtforms
2 2
3class WeatherForm(flask_wtf.FlaskForm): 3class WeatherForm(flask_wtf.FlaskForm):
4 location = wtforms.StringField("Location", validators=[wtforms.validators.DataRequired()]) 4 location = wtforms.StringField("Location")
5 days = wtforms.SelectField("Days", choices=[('1','1'),('2','2'),('3','3'),('4','4'),('5','5'),('6','6'),('7','7')])
6 forecast_type = wtforms.RadioField("Type", choices=[('hourly', 'Hourly Forecast'),('daily','Daily Forecast')], default="hourly")
7 submit = wtforms.SubmitField("Submit") 5 submit = wtforms.SubmitField("Submit")
8 6