Skip to content

Commit

Permalink
remove duplicates in taxa keywords
Browse files Browse the repository at this point in the history
  • Loading branch information
fostermh committed Jan 17, 2025
1 parent 0add78b commit cffad0e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion firebase_to_xml/firebase_to_xml/record_json_to_yaml.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,10 @@ def format_taxa(taxa):
t.get("genus"),
t.get("species")
))).split(",")


# remove duplicates
taxaKeywords = list(set(taxaKeywords))

return taxaKeywords


Expand Down

0 comments on commit cffad0e

Please sign in to comment.