Skip to content

Commit

Permalink
fix: decrease the topN count explicitly on hosted (#2320)
Browse files Browse the repository at this point in the history
* fix: decrease the topN count explicitly on hosted

* lint
  • Loading branch information
seve authored Jul 21, 2021
1 parent 3d7490e commit bbf1950
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion backend/czi_hosted/common/rest.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit bbf1950

Please sign in to comment.