Browse Source

优化查询日志接口

peng 1 year ago
parent
commit
ec5fea4b69
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Controller/SensorGateway/SmartSwitchController.py

+ 1 - 1
Controller/SensorGateway/SmartSwitchController.py

@@ -451,7 +451,7 @@ class SmartSwitchView(View):
             for item in scene_qs:
                 res.append({
                     'id': item['id'],
-                    'tasks': json.loads(item['task']),
+                    'tasks': json.loads(item['tasks']),
                     'status': item['status'],
                     'created_time': item['created_time']
                 })