Skip to content

Commit

Permalink
Fix bug with etag with stations with same id
Browse files Browse the repository at this point in the history
  • Loading branch information
FL550 committed Sep 18, 2023
1 parent 7ee6c59 commit c75179b
Show file tree
Hide file tree
Showing 2 changed files with 3 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="2.0.9",
version="2.0.10",
author="Max Fermor",
description="A simple tool to retrieve a weather forecast from DWD OpenData",
long_description=long_description,
Expand Down
3 changes: 2 additions & 1 deletion simple_dwd_weatherforecast/dwdforecast.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ class Weather:
forecast_data = None
report_data = None
weather_report = None
etags = {}
etags = None

namespaces = {
"kml": "http://www.opengis.net/kml/2.2",
Expand Down Expand Up @@ -203,6 +203,7 @@ class Weather:
}

def __init__(self, station_id):
self.etags = {}
station = load_station_id(station_id)
if station:
self.station_id = station_id
Expand Down

0 comments on commit c75179b

Please sign in to comment.