소스 검색

倒计时新增执行状态

zhangdongming 2 년 전
부모
커밋
08411c20fe
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  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