Skip to content

Commit

Permalink
Fix condition text
Browse files Browse the repository at this point in the history
  • Loading branch information
FL550 committed Aug 6, 2020
1 parent f4488ca commit 54fd140
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

setuptools.setup(
name="simple_dwd_weatherforecast",
version="0.9.9",
version="0.9.10",
author="Max Fermor",
description="A simple tool to retrieve weather forecast from DWD OpenData",
long_description=long_description,
Expand Down
2 changes: 1 addition & 1 deletion simple_dwd_weatherforecast/dwdforecast.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def get_forecast_condition(self, timestamp: datetime, shouldUpdate = True):
time = self.strip_to_hour_str(timestamp)
if list(self.forecast_data.keys())[0] < time < list(
self.forecast_data.keys())[-1]:
return str(self.weather_codes[self.forecast_data[time]["condition"]])
return str(self.weather_codes[self.forecast_data[time]["condition"]][0])
return None

def get_forecast_temperature(self, timestamp: datetime, shouldUpdate = True):
Expand Down

0 comments on commit 54fd140

Please sign in to comment.