Explorar o código

倒计时新增执行状态

zhangdongming %!s(int64=2) %!d(string=hai) anos
pai
achega
08411c20fe
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  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