Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

station metadata: don't add topics to links, don't remove topics #805

Merged
merged 1 commit into from
Nov 22, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading