Skip to content
Snippets Groups Projects
Commit 65868909 authored by Loraine Gueguen's avatar Loraine Gueguen
Browse files

Add clean function in SpeciesData

parent 8223b710
No related branches found
No related tags found
2 merge requests!9Release 2.0 (merge dev to master),!6Todo release 1.1
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment