Skip to content

Commit

Permalink
We still need hide_root for per any as well.
Browse files Browse the repository at this point in the history
  • Loading branch information
synrg committed Aug 22, 2024
1 parent 50dea8f commit 35a1d06
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dronefly/core/formatters/generic.py
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ def taxa_per_rank(
)
else:
root_taxon = taxon_list[0]
hide_root = include_ranks and len(include_ranks) == 1
hide_root = tree.id == ROOT_TAXON_ID or include_ranks and len(include_ranks) == 1
for taxon in tree.flatten(hide_root=hide_root):
included = True
# TODO: determine if the taxon is a leaf some other way if the object
Expand Down

0 comments on commit 35a1d06

Please sign in to comment.