Skip to content

Commit

Permalink
tranpose links only for core data
Browse files Browse the repository at this point in the history
  • Loading branch information
tomkralidis committed Apr 2, 2024
1 parent 030424f commit 66edef6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions wis2-gdc-management/wis2_gdc/registrar.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,8 +133,9 @@ def register(self, metadata: dict) -> None:
self._process_record_metric(
self.metadata['id'], f'{data_policy}_total', centre_id_labels)

LOGGER.info('Updating links')
self.update_record_links()
if self.metadata['properties']['wmo:dataPolicy'] == 'core':
LOGGER.info('Core data detected: updating links')
self.update_record_links()

LOGGER.info('Publishing metadata to backend')
self._publish()
Expand Down

0 comments on commit 66edef6

Please sign in to comment.