From 65868909d21354b335610313f1105c13dad0ce6d Mon Sep 17 00:00:00 2001 From: Loraine Gueguen <loraine.gueguen@sb-roscoff.fr> Date: Tue, 4 May 2021 11:47:21 +0200 Subject: [PATCH] Add clean function in SpeciesData --- speciesData.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/speciesData.py b/speciesData.py index 2f56fab..5d9ffc2 100755 --- a/speciesData.py +++ b/speciesData.py @@ -15,7 +15,7 @@ class SpeciesData: """ - def clean_string(string): + def clean_string(self, string): if not string is None and string != "": clean_string = string.replace(" ", "_").replace("-", "_").replace("(", "").replace(")", "").replace("'", "").strip() return clean_string -- GitLab