Selaa lähdekoodia

倒计时新增执行状态

zhangdongming 2 vuotta sitten
vanhempi
commit
08411c20fe
1 muutettua tiedostoa jossa 1 lisäystä ja 0 poistoa
  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