Skip to content

Commit

Permalink
don't add topics to links, don't remove topics
Browse files Browse the repository at this point in the history
  • Loading branch information
maaikelimper committed Nov 19, 2024
1 parent 7709558 commit 211755e
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions wis2box-management/wis2box/metadata/station.py
Original file line number Diff line number Diff line change
Expand Up @@ -335,8 +335,6 @@ def publish_from_csv(path: Path, new_topic: str = None) -> None:
if wigos_station_identifier in stations:
feature = stations[wigos_station_identifier]
topics = feature['properties'].get('topics', [])
# remove topics not in valid_topics
topics = [x for x in topics if x in valid_topics]
# add new_topic if not already in topics
if new_topic is not None:
topic2 = new_topic
Expand Down Expand Up @@ -378,8 +376,7 @@ def publish_from_csv(path: Path, new_topic: str = None) -> None:
'topics': topics,
# TODO: update with real-time status as per https://codes.wmo.int/wmdr/_ReportingStatus # noqa
'status': 'operational'
},
'links': topics
}
}

LOGGER.debug('Checking properties against WMDR code lists')
Expand Down

0 comments on commit 211755e

Please sign in to comment.