Ver Fonte

云存用户信息查询按云存添加时间降序

locky há 3 anos atrás
pai
commit
2451f09383
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      AdminController/ServeManagementController.py

+ 1 - 1
AdminController/ServeManagementController.py

@@ -827,7 +827,7 @@ class serveManagement(View):
 
             list_data = []
             count = uid_bucket_qs.count()
-            uid_bucket_qs = uid_bucket_qs[(page - 1) * line:page * line]
+            uid_bucket_qs = uid_bucket_qs.order_by('-addTime')[(page - 1) * line:page * line]
 
             for uid_bucket in uid_bucket_qs:
                 data = {