mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-09-13 05:49:07 +00:00
fix: 修复作业中心提示用户名排序每次不一样的问题
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user