فهرست منبع

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

locky 1 سال پیش
والد
کامیت
4811e3edbb
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  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: