summaryrefslogtreecommitdiffstats
path: root/python/fatcat_tools
diff options
context:
space:
mode:
Diffstat (limited to 'python/fatcat_tools')
-rw-r--r--python/fatcat_tools/importers/datacite.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/python/fatcat_tools/importers/datacite.py b/python/fatcat_tools/importers/datacite.py
index 551d9d9b..d5622960 100644
--- a/python/fatcat_tools/importers/datacite.py
+++ b/python/fatcat_tools/importers/datacite.py
@@ -1255,7 +1255,7 @@ def parse_datacite_dates(
def parse_item(
item: Dict[str, Any]
) -> Tuple[Optional[datetime.date], Optional[int], Optional[int]]:
- result, value, year_only = None, str(item.get("date", "")) or "", False
+ result, value = None, str(item.get("date", "")) or ""
release_date: Optional[datetime.date] = None
release_month: Optional[int] = None
release_year: Optional[int] = None
@@ -1267,7 +1267,8 @@ def parse_datacite_dates(
continue
else:
if granularity == "y":
- year_only = True
+ # TODO: year_only = True
+ pass
break
if result is None: