aboutsummaryrefslogtreecommitdiffstats
path: root/python/fatcat_tools
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2021-11-24 15:11:56 -0800
committerBryan Newbold <bnewbold@robocracy.org>2021-11-30 16:25:09 -0800
commit2260eefcb5b8f2d3d29be8e98b292b5e7d326844 (patch)
tree8391051216626b0e67a249ba725eb47a7d7ea94c /python/fatcat_tools
parentb392eaf397f4a7d1b127e9947cda9addeac7f7c0 (diff)
downloadfatcat-2260eefcb5b8f2d3d29be8e98b292b5e7d326844.tar.gz
fatcat-2260eefcb5b8f2d3d29be8e98b292b5e7d326844.zip
chocula: don't do name cleanups in importer
This kind of cleanup should be done in 'chocula' instead.
Diffstat (limited to 'python/fatcat_tools')
-rw-r--r--python/fatcat_tools/importers/chocula.py10
1 files changed, 2 insertions, 8 deletions
diff --git a/python/fatcat_tools/importers/chocula.py b/python/fatcat_tools/importers/chocula.py
index c44fec3b..e55be7d5 100644
--- a/python/fatcat_tools/importers/chocula.py
+++ b/python/fatcat_tools/importers/chocula.py
@@ -43,18 +43,12 @@ class ChoculaImporter(EntityImporter):
"""
name = clean_str(row.get("name"))
+ if name and name.endswith("."):
+ name = name[:-1]
if not name:
# Name is required (by schema)
return None
- name = name.strip()
-
- if name.endswith(", Proceedings of the"):
- name = "Proceedings of the " + name.split(",")[0]
-
- if name.endswith("."):
- name = name[:-1]
-
extra = dict()
for k in (
"urls",