Explorar o código

查询AI数据列表eventType只返回一种类型2

locky %!s(int64=3) %!d(string=hai) anos
pai
achega
a0c04ad1b4
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      Controller/AiController.py

+ 1 - 1
Controller/AiController.py

@@ -692,7 +692,7 @@ class AiView(View):
         )
 
         for p in qs:
-            p['eventType'] = eventType
+            p['eventType'] = p['eventType'][0]
             devUid = p['devUid']
             eventTime = p['eventTime']
             channel = p['Channel']