Parcourir la source

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

locky il y a 1 an
Parent
commit
7a7d13e2fd
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      AdminController/UserManageController.py

+ 1 - 1
AdminController/UserManageController.py

@@ -907,7 +907,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: