forked from enviPath/enviPy
[Fix] Legacy API Node Depth Parsing, description validation in Reaction.create (#402)
Co-authored-by: Tim Lorsbach <tim@lorsba.ch> Reviewed-on: enviPath/enviPy#402
This commit is contained in:
@ -1891,7 +1891,7 @@ def add_pathway_node(request, package_uuid, pathway_uuid, n: Form[CreateNode]):
|
||||
pw = Pathway.objects.get(package=p, uuid=pathway_uuid)
|
||||
|
||||
if n.nodeDepth is not None and n.nodeDepth.strip() != "":
|
||||
node_depth = int(n.nodeDepth)
|
||||
node_depth = int(float(n.nodeDepth))
|
||||
else:
|
||||
node_depth = -1
|
||||
|
||||
|
||||
Reference in New Issue
Block a user