Browse Source

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

pull/10480/head
Aaron3S 2 years ago committed by Jiangjie.Bai
parent
commit
3fa80351e0
  1. 2
      apps/ops/api/job.py

2
apps/ops/api/job.py

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

Loading…
Cancel
Save