Sfoglia il codice sorgente

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

locky 1 anno fa
parent
commit
7a7d13e2fd
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  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: