fix: decrease the topN count explicitly on hosted (#2320)

* fix: decrease the topN count explicitly on hosted

* lint
This commit is contained in:
Severiano Badajoz
2021-07-21 18:12:10 +00:00
committed by GitHub
parent 3d7490e0a9
commit bbf1950624
+3 -1
View File
@@ -265,7 +265,9 @@ def diffexp_obs_post(request, data_adaptor):
set1_filter = args.get("set1", {"filter": {}})["filter"]
set2_filter = args.get("set2", {"filter": {}})["filter"]
count = args.get("count", None)
# TODO(#1281): When we simplify the config, we should actually use the config to determine this number,
# this will also require an update in the client
count = 15
if set1_filter is None or set2_filter is None or count is None:
return abort_and_log(HTTPStatus.BAD_REQUEST, "missing required parameter")