diff options
author | Bryan Newbold <bnewbold@robocracy.org> | 2019-02-14 17:45:57 -0800 |
---|---|---|
committer | Bryan Newbold <bnewbold@robocracy.org> | 2019-02-14 17:46:05 -0800 |
commit | 7a436145745b006107093c196071fe4bf8aeac71 (patch) | |
tree | 096b43ddfd482a4be25db4d42cad2d85a5bc4124 | |
parent | b9699e27936573271506dbf6a3af744f7b454c03 (diff) | |
download | fatcat-7a436145745b006107093c196071fe4bf8aeac71.tar.gz fatcat-7a436145745b006107093c196071fe4bf8aeac71.zip |
crossref: import subtitle as str, not list[str]
-rw-r--r-- | python/fatcat_tools/importers/crossref.py | 2 |
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: |