aboutsummaryrefslogtreecommitdiffstats
path: root/python/fatcat
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2018-06-20 19:55:53 -0700
committerBryan Newbold <bnewbold@robocracy.org>2018-06-20 19:55:53 -0700
commit7ebe32a290aa160c43671c21e968d1614a878f02 (patch)
treeb1564665c7566b7b1d82fbac91162a9bf1b9e0bf /python/fatcat
parent907a9d3b5882ec12b2c8c0563a7ed08be0edf022 (diff)
downloadfatcat-7ebe32a290aa160c43671c21e968d1614a878f02.tar.gz
fatcat-7ebe32a290aa160c43671c21e968d1614a878f02.zip
importer tests and fixes
Diffstat (limited to 'python/fatcat')
-rw-r--r--python/fatcat/crossref_importer.py1
-rw-r--r--python/fatcat/importer_common.py2
2 files changed, 2 insertions, 1 deletions
diff --git a/python/fatcat/crossref_importer.py b/python/fatcat/crossref_importer.py
index a7166bc3..ea6b1a2c 100644
--- a/python/fatcat/crossref_importer.py
+++ b/python/fatcat/crossref_importer.py
@@ -106,6 +106,7 @@ class FatcatCrossrefImporter(FatcatImporter):
ce.editgroup_id = editgroup_id
container = self.api.create_container(ce)
re.container_id = container.ident
+ self._issnl_id_map[ce.issnl] = container.ident
created = self.api.create_work(we)
re.work_id = created.ident
self.api.create_release(re)
diff --git a/python/fatcat/importer_common.py b/python/fatcat/importer_common.py
index c24565b4..5bdb61b4 100644
--- a/python/fatcat/importer_common.py
+++ b/python/fatcat/importer_common.py
@@ -84,4 +84,4 @@ class FatcatImporter:
def issn2issnl(self, issn):
if issn is None:
return None
- self._issn_issnl_map.get(issn)
+ return self._issn_issnl_map.get(issn)