[Chore] Leftovers (#426)

Co-authored-by: Tim Lorsbach <tim@lorsba.ch>
Reviewed-on: enviPath/enviPy#426
This commit is contained in:
2026-07-16 21:33:12 +12:00
parent 72a63b4876
commit 3566571b42
6 changed files with 109 additions and 46 deletions

View File

@ -1620,7 +1620,7 @@ class PathwayNode(Schema):
image: str = Field(None, alias="image")
imageSize: int = Field(None, alias="image_size")
name: str = Field(None, alias="name")
proposed: List[Dict[str, str]] = Field([], alias="proposed_intermediate")
proposed: List[Dict[str, str]] = []
smiles: str = Field(None, alias="smiles")
pseudo: bool = Field(False, alias="pseudo")
@ -1910,7 +1910,7 @@ def add_pathway_node(request, package_uuid, pathway_uuid, n: Form[CreateNode]):
else:
node_depth = -1
n = Node.create(
node = Node.create(
pw,
n.nodeAsSmiles,
node_depth,
@ -1919,7 +1919,7 @@ def add_pathway_node(request, package_uuid, pathway_uuid, n: Form[CreateNode]):
description=n.nodeReason,
)
return redirect(n.url)
return redirect(node.url)
except ValueError:
return 403, {"message": "Adding node failed!"}