Browse Source

根据推送时间倒序查询定制化推送任务

locky 1 năm trước cách đây
mục cha
commit
4811e3edbb
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      AdminController/UserManageController.py

+ 1 - 1
AdminController/UserManageController.py

@@ -900,7 +900,7 @@ class UserManagement(View):
         line = int(line)
 
         try:
-            customized_push_qs = CustomizedPush.objects.all()
+            customized_push_qs = CustomizedPush.objects.all().order_by('-push_timestamp')
             if title:
                 customized_push_qs = customized_push_qs.filter(title=title)
             if country: