forked from enviPath/enviPy
Fix Pathway Creation (#34)
Co-authored-by: Tim Lorsbach <tim@lorsba.ch> Reviewed-on: enviPath/enviPy#34
This commit is contained in:
@ -1162,7 +1162,7 @@ def package_pathways(request, package_uuid):
|
|||||||
if pw_mode not in ['predict', 'build', 'incremental']:
|
if pw_mode not in ['predict', 'build', 'incremental']:
|
||||||
return HttpResponseBadRequest()
|
return HttpResponseBadRequest()
|
||||||
|
|
||||||
pw = Pathway.create(current_package, name, description, stand_smiles)
|
pw = Pathway.create(current_package, stand_smiles, name=name, description=description)
|
||||||
# set mode
|
# set mode
|
||||||
pw.kv.update({'mode': pw_mode})
|
pw.kv.update({'mode': pw_mode})
|
||||||
pw.save()
|
pw.save()
|
||||||
|
|||||||
Reference in New Issue
Block a user