From 43cacd6f50398b875364b4870d1cd9542c4832e9 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Wed, 3 Nov 2021 16:43:32 -0700 Subject: datacite importer: remove unused 'year_only' variable --- python/fatcat_tools/importers/datacite.py | 5 +++-- 1 file 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: -- cgit v1.2.3