From 01bc537bd854a7a3550ae85e916858d730c9d4e3 Mon Sep 17 00:00:00 2001 From: Alexander Minges Date: Fri, 4 Jul 2025 10:54:06 +0200 Subject: [PATCH] Fix license field being wrapped in tuple due to trailing comma 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. --- doi2dataset.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doi2dataset.py b/doi2dataset.py index f53e5e2..162a53a 100755 --- a/doi2dataset.py +++ b/doi2dataset.py @@ -1417,7 +1417,7 @@ class MetadataProcessor: return_dict["datasetVersion"]["license"] = { "name": license_info.name, "uri": license_info.uri - }, + } else: return_dict["datasetVersion"]["termsOfUse"] = f"All rights reserved. Copyright © {self._get_publication_year(data)}, [TODO: Insert copyright holder here!]"