Skip to content

Commit

Permalink
Forecast as OrderedDict
Browse files Browse the repository at this point in the history
  • Loading branch information
FL550 committed Sep 18, 2023
1 parent b234053 commit 7233052
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.12",
version="2.0.13",
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
@@ -1,3 +1,4 @@
from collections import OrderedDict
import requests
from io import BytesIO
from zipfile import ZipFile
Expand Down Expand Up @@ -694,7 +695,7 @@ def parse_kml(self, kml, force_hourly=False):
}
merged_list[timesteps[i]] = item
# print(f"temperatures: {self.forecast_data}")
self.forecast_data = merged_list
self.forecast_data = OrderedDict(merged_list)

def parse_csv_row(self, row: dict):
self.report_data = {
Expand Down

0 comments on commit 7233052

Please sign in to comment.