Skip to content

Commit

Permalink
fix ordering by passed percentage
Browse files Browse the repository at this point in the history
  • Loading branch information
amyasnikov committed Sep 22, 2024
1 parent 430f42a commit 7504af9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions validity/tables.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,7 @@ class Meta(NetBoxTable.Meta):

class StatsColumn(Column):
def __init__(self, data_prefix: str, **kwargs):
kwargs.setdefault("order_by", f"{data_prefix}_percentage")
super().__init__(**kwargs)
self.data_prefix = data_prefix

Expand Down

0 comments on commit 7504af9

Please sign in to comment.