Import Export cycle of probs

This commit is contained in:
Tim Lorsbach
2026-11-10 19:57:57 +01:00
parent a6b901aa47
commit 8a1ed2fc6d
3 changed files with 49 additions and 0 deletions
+5
View File
@@ -2159,6 +2159,7 @@ class CreateEdge(Schema):
products: str | None = None # Node URIs comma sep
multistep: str | None = None
edgeReason: str | None = None
probability: float | None = None
@router.post(
@@ -2226,6 +2227,10 @@ def add_pathway_edge(request, package_uuid, pathway_uuid, e: Form[CreateEdge]):
multi_step=multi_step,
)
if e.probability:
new_e.kv["probability"] = e.probability
new_e.save()
# Update depths as sideeffect of above operation
pw.update_depths()