From c9d8c21c2da9e66ddc6960037fb4605e24740b81 Mon Sep 17 00:00:00 2001 From: Jacob Nesbitt Date: Mon, 30 Dec 2024 12:43:53 -0500 Subject: [PATCH] Fix linting error --- dandiapi/api/views/dandiset.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dandiapi/api/views/dandiset.py b/dandiapi/api/views/dandiset.py index c4de00d70..41e2d19b6 100644 --- a/dandiapi/api/views/dandiset.py +++ b/dandiapi/api/views/dandiset.py @@ -110,7 +110,7 @@ def filter_queryset(self, request, queryset, view): if ordering.endswith('stars'): queryset = queryset.annotate(stars_count=Count('stars')) prefix = '-' if ordering.startswith('-') else '' - return queryset.order_by(f"{prefix}stars_count") + return queryset.order_by(f'{prefix}stars_count') return queryset