Skip to content

Commit

Permalink
Only set per rank to ranks for level if not per child.
Browse files Browse the repository at this point in the history
  • Loading branch information
synrg committed Aug 13, 2024
1 parent 2e73fe5 commit 70af245
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dronefly/core/commands/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -311,11 +311,11 @@ def taxon_list(self, ctx: Context, *args):
taxon_list = [*_children, *_descendants.all()]
else:
taxon_list = _children
# List all ranks at the same level, not just the specified rank
_per_rank = RANKS_FOR_LEVEL[rank_level]

per_page = ctx.per_page
with_index = self.format == Format.rich
# List all ranks at the same level, not just the specified rank
_per_rank = RANKS_FOR_LEVEL[rank_level]
formatter = TaxonListFormatter(
taxon_list,
per_rank=_per_rank,
Expand Down

0 comments on commit 70af245

Please sign in to comment.