about summary refs log tree commit diff
diff options
context:
space:
mode:
authorAlexander Kabui2022-01-31 00:37:33 +0300
committerBonfaceKilz2022-02-02 10:59:34 +0300
commit0865b53a22a93dc834f77b0b621e99f6d7b33e87 (patch)
treeaa467f1547c7bf8f238faa08527576f6b506d73a
parentf92f8eccc39dc190cb7c8dd1c99f2bd57c3d2323 (diff)
downloadgenenetwork3-0865b53a22a93dc834f77b0b621e99f6d7b33e87.tar.gz
pep8 formatting
-rw-r--r--gn3/api/ctl.py21
-rw-r--r--gn3/computations/ctl.py2
2 files changed, 12 insertions, 11 deletions
diff --git a/gn3/api/ctl.py b/gn3/api/ctl.py
index 7eca618..05cf6ff 100644
--- a/gn3/api/ctl.py
+++ b/gn3/api/ctl.py
@@ -1,6 +1,6 @@
 """module contains endpoints for ctl"""
 
-# so small 
+# so small
 
 from flask import Blueprint
 from flask import request
@@ -8,16 +8,17 @@ from flask import jsonify
 
 from gn3.computations.ctl import call_ctl_script
 
-ctl = Blueprint("ctl",__name__)
+ctl = Blueprint("ctl", __name__)
 
-@ctl.route("/run_ctl",methods=["POST"])
-def run_ctl():
-	"""endpoint to run ctl"""
-	ctl_data = request.json
 
-	results = call_ctl_script(ctl_data)
+@ctl.route("/run_ctl", methods=["POST"])
+def run_ctl():
+    """endpoint to run ctl"""
+    ctl_data = request.json
 
-	return jsonify({
-	"results":results
-	})
+    results = call_ctl_script(ctl_data)
 
+    return jsonify({
+        "results": results
+    })
+    
diff --git a/gn3/computations/ctl.py b/gn3/computations/ctl.py
index 1a71056..a5c4565 100644
--- a/gn3/computations/ctl.py
+++ b/gn3/computations/ctl.py
@@ -31,6 +31,6 @@ def call_ctl_script(data):
 
             return output_file_data
 
-    except Exception as e:
+    except Exception as e:        
         return str(e)