Skip to content

Commit

Permalink
fix hierarchy links in contacts
Browse files Browse the repository at this point in the history
  • Loading branch information
pvgenuchten committed Oct 2, 2024
1 parent 6bb4520 commit 013cf27
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions pycsw/ogc/api/records.py
Original file line number Diff line number Diff line change
Expand Up @@ -1217,9 +1217,7 @@ def record2json(record, url, collection, mode='ogcapi-records'):
'postalCode': cnt.get('postcode', ''),
'country': cnt.get('country', '')
}],
'links': [{
'href': cnt.get('onlineresource')
}]
'links': [cnt.get('onlineresource')]
})
except Exception as err:
LOGGER.exception(f"failed to parse contact of {record.identifier}: {err}")
Expand Down

0 comments on commit 013cf27

Please sign in to comment.