summaryrefslogtreecommitdiffstats
path: root/python/fatcat_tools/importers
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2019-02-14 17:45:57 -0800
committerBryan Newbold <bnewbold@robocracy.org>2019-02-14 17:46:05 -0800
commit7a436145745b006107093c196071fe4bf8aeac71 (patch)
tree096b43ddfd482a4be25db4d42cad2d85a5bc4124 /python/fatcat_tools/importers
parentb9699e27936573271506dbf6a3af744f7b454c03 (diff)
downloadfatcat-7a436145745b006107093c196071fe4bf8aeac71.tar.gz
fatcat-7a436145745b006107093c196071fe4bf8aeac71.zip
crossref: import subtitle as str, not list[str]
Diffstat (limited to 'python/fatcat_tools/importers')
-rw-r--r--python/fatcat_tools/importers/crossref.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/python/fatcat_tools/importers/crossref.py b/python/fatcat_tools/importers/crossref.py
index f357297a..5715654b 100644
--- a/python/fatcat_tools/importers/crossref.py
+++ b/python/fatcat_tools/importers/crossref.py
@@ -283,6 +283,8 @@ class CrossrefImporter(EntityImporter):
for key in ('group-title', 'subtitle'):
val = obj.get(key)
if val:
+ if type(val) == list:
+ val = val[0]
if type(val) == str:
extra[key] = clean(val)
else: