fix: 修复作业中心提示用户名排序每次不一样的问题

pull/10480/head
Aaron3S 2023-05-17 15:07:34 +08:00 committed by Jiangjie.Bai
parent 1fef273669
commit 3fa80351e0
1 changed files with 1 additions and 1 deletions

View File

@ -167,5 +167,5 @@ class UsernameHintsAPI(APIView):
.filter(asset__in=assets) \ .filter(asset__in=assets) \
.values('username') \ .values('username') \
.annotate(total=Count('username')) \ .annotate(total=Count('username')) \
.order_by('total')[:10] .order_by('total', 'username')[:10]
return Response(data=top_accounts) return Response(data=top_accounts)