Skip to content

Commit

Permalink
taxon list: Format counts in uniform width column.
Browse files Browse the repository at this point in the history
  • Loading branch information
synrg committed Aug 5, 2024
1 parent 85fb2c5 commit 4749dfb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion dronefly/core/formatters/generic.py
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,9 @@ def filter_taxon_list(
if taxon_count_digits > max_taxon_count_digits:
max_taxon_count_digits = taxon_count_digits
else:
max_taxon_count_digits = len(str(_taxon.observations_count))
taxon_count_digits = len(str(_taxon.observations_count))
if taxon_count_digits > max_taxon_count_digits:
max_taxon_count_digits = taxon_count_digits
counted_taxa.append(_taxon)
rank = _taxon.rank
tot[rank] = tot.get(_taxon.rank, 0) + 1
Expand Down

0 comments on commit 4749dfb

Please sign in to comment.