aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2021-09-27 05:25:58 +0300
committerFrederick Muriuki Muriithi2021-09-27 05:25:58 +0300
commita9fc9814760d205674904f8feb700eadae480fb1 (patch)
tree0647dddf8b1aa4530476807bfa3a5dfd54a8119f
parent60d54d8de466c179a93b6d46ad05ec1b9ba5f4a1 (diff)
downloadgenenetwork3-a9fc9814760d205674904f8feb700eadae480fb1.tar.gz
Remove unnecessary variable.
Issue: https://github.com/genenetwork/gn-gemtext-threads/blob/main/topics/gn1-migration-to-gn2/clustering.gmi * Fix issue according to review https://github.com/genenetwork/genenetwork3/pull/37#discussion_r714549781
-rw-r--r--gn3/api/heatmaps.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/gn3/api/heatmaps.py b/gn3/api/heatmaps.py
index fe47aee..62ca2ad 100644
--- a/gn3/api/heatmaps.py
+++ b/gn3/api/heatmaps.py
@@ -17,8 +17,7 @@ def clustered_heatmaps():
Parses the incoming data and responds with the JSON-serialized plotly figure
representing the clustered heatmap.
"""
- heatmap_request = request.get_json()
- traits_names = heatmap_request.get("traits_names", tuple())
+ traits_names = request.get_json().get("traits_names", tuple())
if len(traits_names) < 2:
return jsonify({
"message": "You need to provide at least two trait names."