Skip to content

Commit

Permalink
updates for upstream property name changes for weatherstories (#377)
Browse files Browse the repository at this point in the history
  • Loading branch information
Dukestep authored Feb 12, 2025
1 parent 00d916d commit 1f8cd2c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions msc_pygeoapi/loader/weatherstories_realtime.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,9 @@ def load_data(self, filepath: str) -> bool:
for feature in features:
properties = feature.get('properties')
if 'subregion_name' in properties:
id_ = f"{str(properties['prov_name_en'][0])}-{properties['subregion_name']}" # noqa
id_ = f"{str(properties['province_territory_name_en'])}-{properties['subregion_name_en']}" # noqa
else:
id_ = f"{str(properties['prov_name_en'][0])}"
id_ = f"{str(properties['province_territory_name_en'])}"

self.conn.Elasticsearch.index(
index="weatherstories",
Expand Down

0 comments on commit 1f8cd2c

Please sign in to comment.