aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gn3/api/heatmaps.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/gn3/api/heatmaps.py b/gn3/api/heatmaps.py
index 0493f8a..1022a35 100644
--- a/gn3/api/heatmaps.py
+++ b/gn3/api/heatmaps.py
@@ -11,9 +11,9 @@ heatmaps = Blueprint("heatmaps", __name__)
def clustered_heatmaps():
heatmap_request = request.get_json()
traits_names = heatmap_request.get("traits_names", tuple())
- if len(traits_names) < 1:
+ if len(traits_names) < 2:
return jsonify({
- "message": "You need to provide at least one trait name."
+ "message": "You need to provide at least two trait names."
}), 400
conn, _cursor = database_connector()
def parse_trait_fullname(trait):