Fix scripting interface for creating tests

This commit is contained in:
andrew committed 2023-07-19 04:48:09 -04:00
1 parent ef3104cd68
commit 36984135e8
1 file changed
+1 -4
+1 -4
View File
@@ -569,13 +569,10 @@ def scripts(request):
if request.POST['action'] == 'UPLOAD_NETWORK':
engine = request.POST['engine']
name = request.POST['name']
import sys
sys.stdout.write(engine + ' ' + name + '\n')
sys.stdout.flush()
return networks(request, engine, 'upload', name)
if request.POST['action'] == 'CREATE_TEST':
return newTest(request)
return create_test(request)
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
# CLIENT HOOK VIEWS #