diff options
author | Bryan Newbold <bnewbold@robocracy.org> | 2020-07-01 18:35:24 -0700 |
---|---|---|
committer | Bryan Newbold <bnewbold@robocracy.org> | 2020-07-01 18:35:24 -0700 |
commit | 30905f1effb33c3ef193d084120aa3fbd75d0b9b (patch) | |
tree | 7d460a16c6fc7099fdfd99225ba4de48adc1e820 /python/fatcat_tools/importers/crossref.py | |
parent | a6e515dfe8f07410e7c71fa826995e5172b19731 (diff) | |
download | fatcat-30905f1effb33c3ef193d084120aa3fbd75d0b9b.tar.gz fatcat-30905f1effb33c3ef193d084120aa3fbd75d0b9b.zip |
lint (flake8) tool python files
Diffstat (limited to 'python/fatcat_tools/importers/crossref.py')
-rw-r--r-- | python/fatcat_tools/importers/crossref.py | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/python/fatcat_tools/importers/crossref.py b/python/fatcat_tools/importers/crossref.py index d26f089f..854e3d9f 100644 --- a/python/fatcat_tools/importers/crossref.py +++ b/python/fatcat_tools/importers/crossref.py @@ -1,10 +1,6 @@ -import sys -import json import sqlite3 import datetime -import itertools -import subprocess import fatcat_openapi_client from .common import EntityImporter, clean @@ -425,7 +421,6 @@ class CrossrefImporter(EntityImporter): release_year = raw_date[0] release_date = None - original_title = None if obj.get('original-title'): original_title = clean(obj.get('original-title')[0], force_xml=True) @@ -500,7 +495,7 @@ class CrossrefImporter(EntityImporter): if existing: self.counts['exists'] += 1 return False - + return True def insert_batch(self, batch): @@ -509,4 +504,3 @@ class CrossrefImporter(EntityImporter): description=self.editgroup_description, extra=self.editgroup_extra), entity_list=batch)) - |