Skip to content

Commit

Permalink
handle edge case where threshold = 0
Browse files Browse the repository at this point in the history
  • Loading branch information
gsfk committed Jan 10, 2024
1 parent 5e5f972 commit 36db4aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bento_beacon/utils/beacon_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ def build_query_response(ids=None, numTotalResults=None, full_record_handler=Non
granularity = response_granularity()
count = len(ids) if numTotalResults is None else numTotalResults
returned_count = censored_count(count)
if returned_count == 0 and not g.permission_query_data:
if returned_count == 0 and get_censorship_threshold() > 0:
add_info_to_response(no_results_censorship_message())
if granularity == GRANULARITY_BOOLEAN:
return beacon_boolean_response(returned_count)
Expand Down

0 comments on commit 36db4aa

Please sign in to comment.