Browse Source

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

locky 3 years ago
parent
commit
a0c04ad1b4
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Controller/AiController.py

+ 1 - 1
Controller/AiController.py

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