-
Notifications
You must be signed in to change notification settings - Fork 52
Feature/weather forecast #62
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature/weather forecast #62
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great! :)
app/weather_forecast.py
Outdated
""" | ||
input_date = datetime(year=year, month=month, day=day) | ||
forecast_type = calculate_forecast_type(input_date) | ||
if forecast_type == HISTORY_TYPE: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe you can use a dict instead of many ifs?
Awesome progress, I've reviewed the code again and there are some small fixes left. GJ! |
…into feature/weather_forecast
Codecov Report
@@ Coverage Diff @@
## develop #62 +/- ##
==========================================
Coverage 100.00% 100.00%
==========================================
Files 15 16 +1
Lines 425 544 +119
==========================================
+ Hits 425 544 +119
Continue to review full report at Codecov.
|
…into feature/weather_forecast
…dar2020/calendar into feature/weather_forecast
This feature gets weather data for given date & location.
It returns the following: