Skip to content

Commit

Permalink
add 1..n topics to station features
Browse files Browse the repository at this point in the history
  • Loading branch information
tomkralidis committed Sep 7, 2023
1 parent 3f591a5 commit e876f03
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions wis2box-management/wis2box/metadata/station.py
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,7 @@ def publish_station_collection() -> None:
wigos_station_identifier = row['wigos_station_identifier']
station_list.append(wigos_station_identifier)
topics = list(check_station_datasets(wigos_station_identifier))
topics2 = [x[0]['title'] for x in topics]
topic = None if len(topics) == 0 else topics[0]['title']

LOGGER.debug('Verifying station coordinate types')
Expand Down Expand Up @@ -231,6 +232,7 @@ def publish_station_collection() -> None:
'wmo_region': get_wmo_ra_roman(row['wmo_region']),
'url': f"{oscar_baseurl}/{wigos_station_identifier}",
'topic': topic,
'topics': topics2,
# TODO: update with real-time status as per https://codes.wmo.int/wmdr/_ReportingStatus # noqa
'status': 'operational'
},
Expand Down

0 comments on commit e876f03

Please sign in to comment.