From 374ee9ff1e975dd14cea3a4a35a5950880db7225 Mon Sep 17 00:00:00 2001 From: Alexander Kabui Date: Fri, 10 Dec 2021 15:44:06 +0300 Subject: pep8 formatting --- wqflask/wqflask/wgcna/gn3_wgcna.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'wqflask') diff --git a/wqflask/wqflask/wgcna/gn3_wgcna.py b/wqflask/wqflask/wgcna/gn3_wgcna.py index 17599711..7bf5c62b 100644 --- a/wqflask/wqflask/wgcna/gn3_wgcna.py +++ b/wqflask/wqflask/wgcna/gn3_wgcna.py @@ -98,12 +98,7 @@ def run_wgcna(form_data): status_code = response.status_code response = response.json() - if status_code != 200: - return { - "error": response - } - - return { + return {"error": response} if status_code != 200 else { "error": 'null', "results": response, "data": process_wgcna_data(response["data"]), -- cgit v1.2.3