diff --git a/dandiapi/api/views/dandiset.py b/dandiapi/api/views/dandiset.py index 9ce51ef56..e22bfd86e 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