mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-08-02 07:03:40 +00:00
fix: 修复作业中心提示用户名排序每次不一样的问题
This commit is contained in:
parent
1fef273669
commit
3fa80351e0
@ -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…
Reference in New Issue
Block a user