jack 1 天之前
父节点
当前提交
879ecb246d
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. 3 1
      app/services/run/run_step.py

+ 3 - 1
app/services/run/run_step.py

@@ -63,7 +63,9 @@ class RunStepService:
         #run_step.step_details = step_details
         #run_step.step_details = step_details
         if isinstance(step_details, dict):
         if isinstance(step_details, dict):
             print("step_details is a dict")
             print("step_details is a dict")
-            run_step.step_details.update(step_details)
+            new_step_details = dict(run_step.step_details or {})
+            new_step_details.update(step_details)
+            run_step.step_details = new_step_details
             print("step_details", step_details)
             print("step_details", step_details)
             print("run_step.step_details", run_step.step_details)
             print("run_step.step_details", run_step.step_details)
         else:
         else: