Skip to content

Conversation

@hadaskedar2020
Copy link
Contributor

This feature gets weather data for given date & location.
It returns the following:

  • Status - success / failure (+ ErrorDescription).
  • Temprature data (min&max degrees) in Celsius & Fahrenheit.
  • ForecastType: forecast/ history/ historical average.
  • Address - The location found by the service.

Copy link

@Lisafiluz Lisafiluz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great! :)

"""
input_date = datetime(year=year, month=month, day=day)
forecast_type = calculate_forecast_type(input_date)
if forecast_type == HISTORY_TYPE:
Copy link
Contributor

@ivarshav ivarshav Jan 16, 2021

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?

@yammesicka
Copy link
Member

Awesome progress, I've reviewed the code again and there are some small fixes left. GJ!

@yammesicka yammesicka closed this Jan 21, 2021
@yammesicka yammesicka deleted the branch PythonFreeCourse:develop January 21, 2021 02:36
@yammesicka yammesicka reopened this Jan 21, 2021
@codecov-io
Copy link

codecov-io commented Jan 22, 2021

Codecov Report

Merging #62 (ccf393d) into develop (ab45a02) will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           develop       #62    +/-   ##
==========================================
  Coverage   100.00%   100.00%            
==========================================
  Files           15        16     +1     
  Lines          425       544   +119     
==========================================
+ Hits           425       544   +119     
Impacted Files Coverage Δ
app/internal/weather_forecast.py 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update ab45a02...ccf393d. Read the comment docs.

@yammesicka yammesicka merged commit d706153 into PythonFreeCourse:develop Jan 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants