Skip to content

Commit

Permalink
OARec; safeguard rights
Browse files Browse the repository at this point in the history
  • Loading branch information
tomkralidis committed Jan 27, 2024
1 parent 335e1b8 commit a26ab9b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pygeometa/schemas/ogcapi_records/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,8 @@ def write(self, mcf: dict, stringify: str = True) -> Union[dict, str]:
rights = get_charstring(mcf['identification'].get('rights'),
self.lang1, self.lang2)

record['properties']['rights'] = rights[0]
if rights != [None, None]:
record['properties']['rights'] = rights[0]

formats = []
for v in mcf['distribution'].values():
Expand Down

0 comments on commit a26ab9b

Please sign in to comment.