From 2260eefcb5b8f2d3d29be8e98b292b5e7d326844 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Wed, 24 Nov 2021 15:11:56 -0800 Subject: chocula: don't do name cleanups in importer This kind of cleanup should be done in 'chocula' instead. --- python/fatcat_tools/importers/chocula.py | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'python/fatcat_tools') 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", -- cgit v1.2.3