summaryrefslogtreecommitdiffstats
path: root/python/fatcat_tools/importers
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2020-12-17 01:56:27 -0800
committerBryan Newbold <bnewbold@robocracy.org>2020-12-17 23:03:08 -0800
commit9451b3063c2d446748db74027c40c13ee69c24fb (patch)
treea62a4170469b9d8d9bfeec540a7e8c75f1a704a2 /python/fatcat_tools/importers
parent58ff361eb481bee9d2ef7249f48f94729d2a830d (diff)
downloadfatcat-9451b3063c2d446748db74027c40c13ee69c24fb.tar.gz
fatcat-9451b3063c2d446748db74027c40c13ee69c24fb.zip
improve dblp release import
Diffstat (limited to 'python/fatcat_tools/importers')
-rw-r--r--python/fatcat_tools/importers/dblp_release.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/python/fatcat_tools/importers/dblp_release.py b/python/fatcat_tools/importers/dblp_release.py
index e4d20370..9170dd2f 100644
--- a/python/fatcat_tools/importers/dblp_release.py
+++ b/python/fatcat_tools/importers/dblp_release.py
@@ -68,6 +68,7 @@ class DblpReleaseImporter(EntityImporter):
if line.startswith("dblp_prefix") or len(line) == 0:
continue
(prefix, container_id) = line.split()[0:2]
+ container_id = container_id.strip()
assert len(container_id) == 26
self._dblp_container_map[prefix] = container_id
print("Got {} dblp container mappings.".format(len(self._dblp_container_map)), file=sys.stderr)
@@ -310,7 +311,7 @@ class DblpReleaseImporter(EntityImporter):
# then try other ext_id lookups
if not existing:
- for extid_type in ('doi', 'wikidata_qid', 'isbn13', 'arxiv_id'):
+ for extid_type in ('doi', 'wikidata_qid', 'isbn13', 'arxiv'):
extid_val = getattr(re.ext_ids, extid_type)
if not extid_val:
continue