Skip to content

Commit

Permalink
Fix regression: per rank has too many results and lists per child ins…
Browse files Browse the repository at this point in the history
…tead.

- in the previous commit the substitution of rank for ranks at the same level broke this
  • Loading branch information
synrg committed Aug 13, 2024
1 parent 70af245 commit c8a1fb3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion dronefly/core/commands/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,8 @@ def taxon_list(self, ctx: Context, *args):
else:
taxon_list = _children
# List all ranks at the same level, not just the specified rank
_per_rank = RANKS_FOR_LEVEL[rank_level]
if _per_rank != "child":
_per_rank = RANKS_FOR_LEVEL[rank_level]

per_page = ctx.per_page
with_index = self.format == Format.rich
Expand Down

0 comments on commit c8a1fb3

Please sign in to comment.