forked from enviPath/enviPy
Import Export cycle of probs
This commit is contained in:
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user