mirror of
https://github.com/zulip/zulip.git
synced 2025-11-03 13:33:24 +00:00
backend: Add request as parameter to json_success.
Adds request as a parameter to json_success as a refactor towards making `ignored_parameters_unsupported` functionality available for all API endpoints. Also, removes any data parameters that are an empty dict or a dict with the generic success response values.
This commit is contained in:
committed by
Tim Abbott
parent
6f7e53c517
commit
3be622ffa7
@@ -410,7 +410,7 @@ def get_chart_data(
|
||||
data["display_order"] = labels_sort_function(data)
|
||||
else:
|
||||
data["display_order"] = None
|
||||
return json_success(data=data)
|
||||
return json_success(request, data=data)
|
||||
|
||||
|
||||
def sort_by_totals(value_arrays: Dict[str, List[int]]) -> List[str]:
|
||||
|
||||
Reference in New Issue
Block a user