Jelajahi Sumber

Merge remote-tracking branch 'remotes/origin/locky' into test

Ansjer 10 bulan lalu
induk
melakukan
84c8966204
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      Controller/Cron/CronTaskController.py

+ 1 - 1
Controller/Cron/CronTaskController.py

@@ -781,7 +781,7 @@ class CronUpdateDataView(View):
         @request_dict serial_redis_list: 序列号redis列表
         @param response: 响应对象
         """
-        serial_unbind_uid_qs = SerialUnbindUID.objects.filter(status=0).values_list('serial', 'uid')
+        serial_unbind_uid_qs = SerialUnbindUID.objects.filter(status=0).values('serial', 'uid')
         # 没有需要清除的数据直接返回
         if not serial_unbind_uid_qs.exists():
             return response.json(0)