diff options
Diffstat (limited to 'forms.py')
-rw-r--r-- | forms.py | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -1,8 +1,6 @@ | |||
1 | import flask_wtf, wtforms | 1 | import flask_wtf, wtforms |
2 | 2 | ||
3 | class WeatherForm(flask_wtf.FlaskForm): | 3 | class 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 | ||