Browse Source

倒计时新增执行状态

zhangdongming 2 years ago
parent
commit
08411c20fe
1 changed files with 1 additions and 0 deletions
  1. 1 0
      Controller/SensorGateway/SmartSocketController.py

+ 1 - 0
Controller/SensorGateway/SmartSocketController.py

@@ -234,6 +234,7 @@ class SmartSocketView(View):
                                    "created_time": now_time,
                                    "updated_time": now_time,
                                    "online": True,
+                                   "start": True if start == 1 else False,
                                    "count_down_time": count_down_time}
                     socket_info_qs = SocketInfo.objects.create(**socket_dict)
                     count_down_id = socket_info_qs.id