Skip to content

Commit b0dea68

Browse files
authored
Fix #1035 (#1189)
1 parent bf10552 commit b0dea68

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pycsw/ogc/api/records.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1243,6 +1243,8 @@ def record2json(record, url, collection, mode='ogcapi-records'):
12431243
for key, value in assets.items():
12441244
value['rel'] = 'enclosure'
12451245
value['name'] = key
1246+
if 'links' not in rec:
1247+
rec['links'] = []
12461248
rec['links'].append(value)
12471249

12481250
return rec

0 commit comments

Comments
 (0)