chenjunkai 6 năm trước cách đây
mục cha
commit
fd8e5c63d5
1 tập tin đã thay đổi với 2 bổ sung1 xóa
  1. 2 1
      Controller/DetectController.py

+ 2 - 1
Controller/DetectController.py

@@ -79,7 +79,8 @@ class DetectControllerView(View):
         nowTime = int(time.time())
         if not page or not line:
             return response.json(444, 'page,line')
-        qs = Equipment_Info.objects.filter(userID_id=userID, eventTime__gte=nowTime - 3600 * 24 * 27)
+
+        qs = Equipment_Info.objects.filter(userID_id=userID, addTime__gte=nowTime - 3600 * 24 * 27)
         uid = request_dict.get('uid', None)
         if uid:
             qs = qs.filter(devUid=uid)