Fix license field being wrapped in tuple due to trailing comma
All checks were successful
Test pipeline / test (push) Successful in 16s

Remove trailing comma after license dictionary assignment that was causing the license field to be
stored as a single-element tuple instead of a plain dictionary object.
This commit is contained in:
Alexander Minges 2025-07-04 10:54:06 +02:00
parent eb270cba9b
commit 01bc537bd8
Signed by: Athemis
SSH key fingerprint: SHA256:TUXshgulbwL+FRYvBNo54pCsI0auROsSEgSvueKbkZ4

View file

@ -1417,7 +1417,7 @@ class MetadataProcessor:
return_dict["datasetVersion"]["license"] = { return_dict["datasetVersion"]["license"] = {
"name": license_info.name, "name": license_info.name,
"uri": license_info.uri "uri": license_info.uri
}, }
else: else:
return_dict["datasetVersion"]["termsOfUse"] = f"All rights reserved. Copyright © {self._get_publication_year(data)}, [TODO: Insert copyright holder here!]" return_dict["datasetVersion"]["termsOfUse"] = f"All rights reserved. Copyright © {self._get_publication_year(data)}, [TODO: Insert copyright holder here!]"