Explorar o código

修改任务命名

locky hai 1 ano
pai
achega
689265d4d2
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      Controller/SensorGateway/SmartSceneController.py

+ 1 - 1
Controller/SensorGateway/SmartSceneController.py

@@ -1508,7 +1508,7 @@ class SmartSceneView(View):
                     device_type = time_task['device_type']
                     event_type = time_task['event_type']
                     serial_number = time_task['serial_number']
-                    task_id = serial_number + '_' + str(time_stamp)
+                    task_id = '{}_{}_{}'.format(serial_number, str(now_time), str(time_stamp))
                     # 最后一个任务使用传入的scene_id
                     smart_scene_id = scene_id if index == task_list_len-1 else 0
                     kwargs = {