aboutsummaryrefslogtreecommitdiffstats
path: root/python
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2021-11-03 16:43:32 -0700
committerBryan Newbold <bnewbold@robocracy.org>2021-11-03 16:52:44 -0700
commit43cacd6f50398b875364b4870d1cd9542c4832e9 (patch)
treee2ac7103ce7876ef8f0dfb1613be1b30eae902a8 /python
parent597b455dbed79305d28d53f7f71dbd42a8f30248 (diff)
downloadfatcat-43cacd6f50398b875364b4870d1cd9542c4832e9.tar.gz
fatcat-43cacd6f50398b875364b4870d1cd9542c4832e9.zip
datacite importer: remove unused 'year_only' variable
Diffstat (limited to 'python')
-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: