Skip to content

Commit

Permalink
more comments
Browse files Browse the repository at this point in the history
  • Loading branch information
gsfk committed May 14, 2024
1 parent 33221ff commit a31582e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bento_beacon/utils/censorship.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def reject_if_too_many_filters(filters):
raise InvalidQuery(f"too many filters in request, maximum of {max_filters} permitted")


# at some point may want to show fields as zero rather than removing entirely
# at some point may want to show censored fields as zero rather than removing entirely
def censored_chart_data(data):
t = get_censorship_threshold() # zero with correct permissions
return [{"label": d["label"], "value": d["value"]} for d in data if d["value"] > t]

0 comments on commit a31582e

Please sign in to comment.