From 70bdcb1ba7ce4aeb423fd6c5ff0ac002302fa1e9 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Wed, 8 Sep 2021 17:49:57 -0700 Subject: generic fileset importer class, with test coverage --- python/fatcat_tools/importers/common.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'python/fatcat_tools/importers/common.py') diff --git a/python/fatcat_tools/importers/common.py b/python/fatcat_tools/importers/common.py index e936477c..680b4f9c 100644 --- a/python/fatcat_tools/importers/common.py +++ b/python/fatcat_tools/importers/common.py @@ -447,6 +447,10 @@ class EntityImporter: existing.urls = [u for u in existing.urls if u.url not in redundant_urls] return existing + @staticmethod + def generic_fileset_cleanups(existing): + return existing + def match_existing_release_fuzzy(self, release: ReleaseEntity) -> Optional[Tuple[str, str, ReleaseEntity]]: """ This helper function uses fuzzycat (and elasticsearch) to look for -- cgit v1.2.3