Sfoglia il codice sorgente

增加更新工作流函数

xueyiming 2 settimane fa
parent
commit
971cf0a6ec
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  1. 1 0
      ad/pai_flow_operator2.py

+ 1 - 0
ad/pai_flow_operator2.py

@@ -527,6 +527,7 @@ def update_online_flow():
                 raise Exception("在处理节点属性时,字典中缺少必要的键")
         new_content = json.dumps(content_json, ensure_ascii=False)
         PAIClient.update_experiment_content(experiment_id, new_content, version)
+        return True
     except json.JSONDecodeError:
         raise Exception("JSON 解析错误,可能是草稿内容格式不正确")
     except Exception as e: