Skip to content

Commit

Permalink
Fix linting error
Browse files Browse the repository at this point in the history
  • Loading branch information
jjnesbitt committed Dec 30, 2024
1 parent 80d6c0d commit c9d8c21
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dandiapi/api/views/dandiset.py
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand Down

0 comments on commit c9d8c21

Please sign in to comment.