Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Dec 30, 2024
1 parent 6b41ad6 commit e122f1b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion dashboard/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@ def index(request):
if data is None:
metrics = []
for MC in Metric.__subclasses__():
metrics.extend(MC.objects.filter(show_on_dashboard=True).prefetch_related("data"))
metrics.extend(
MC.objects.filter(show_on_dashboard=True).prefetch_related("data")
)
metrics = sorted(metrics, key=operator.attrgetter("display_position"))

data = []
Expand Down

0 comments on commit e122f1b

Please sign in to comment.