Jelajahi Sumber

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

locky 3 tahun lalu
induk
melakukan
2451f09383
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  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 = {