diff options
author | Alexander Kabui | 2021-12-10 15:44:06 +0300 |
---|---|---|
committer | BonfaceKilz | 2021-12-13 15:48:00 +0300 |
commit | 374ee9ff1e975dd14cea3a4a35a5950880db7225 (patch) | |
tree | 52451d6c6bcc0b30b7f92f3d054d1b5e506f2603 | |
parent | 3329584a1cfaa884b35bc35e6579d53c7edca84e (diff) | |
download | genenetwork2-374ee9ff1e975dd14cea3a4a35a5950880db7225.tar.gz |
pep8 formatting
-rw-r--r-- | wqflask/wqflask/wgcna/gn3_wgcna.py | 7 |
1 files changed, 1 insertions, 6 deletions
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"]), |