peng 1 жил өмнө
parent
commit
ec5fea4b69

+ 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']
                 })