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

Add clean function in SpeciesData

parent b732eed0
No related branches found
No related tags found
2 merge requests!9Release 2.0 (merge dev to master),!6Todo release 1.1
......@@ -17,7 +17,7 @@ class SpeciesData:
def clean_string(string):
if not string is None and string != "":
clean_string = string.replace(" ", "_").replace("-", "_").replace("(", "").replace(")", "").replace("'", "")
clean_string = string.replace(" ", "_").replace("-", "_").replace("(", "").replace(")", "").replace("'", "").strip()
return clean_string
else:
return 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