Commit e55f7b34 authored by Lukas Jelonek's avatar Lukas Jelonek
Browse files

Fix bug: Taxonomy retrieves lineage as a string with a list instead of a list of strings

parent 8e3b1456
......@@ -56,7 +56,12 @@ def read_basic(d):
if 'commonName' in d:
out['commonName'] = d['commonName']
if 'lineage' in d:
out['lineage'] = d['lineage']
# the lineage string contains a ';' separated list, that is converted here
# into a true list
lineage_list = d['lineage'].split("; ")
if not lineage_list[-1].strip():
lineage_list = lineage_list[:-1]
out['lineage'] = lineage_list
if 'rank' in d:
out['rank'] = d['rank']
return (out)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment