aboutsummaryrefslogtreecommitdiff
path: root/gn3/api
diff options
context:
space:
mode:
authorAlexander Kabui2022-02-01 18:43:57 +0300
committerBonfaceKilz2022-02-02 10:59:34 +0300
commit0f9e3a24b120db9c00e8b6be93194c2be392a3ab (patch)
treec5ef61a2e05ea03ec8adfd741b65abedf5a514d5 /gn3/api
parenteaf06778297c4a8f240bba0f3b0dd6a4621f237f (diff)
downloadgenenetwork3-0f9e3a24b120db9c00e8b6be93194c2be392a3ab.tar.gz
response object error fix
Diffstat (limited to 'gn3/api')
-rw-r--r--gn3/api/ctl.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/gn3/api/ctl.py b/gn3/api/ctl.py
index 2157b24..ac33d63 100644
--- a/gn3/api/ctl.py
+++ b/gn3/api/ctl.py
@@ -20,5 +20,5 @@ def run_ctl():
(cmd_results, response) = call_ctl_script(ctl_data)
return (jsonify({
- "results": results
+ "results": response
}), 200) if response is not None else (jsonify({"error": str(cmd_results)}), 401)