Skip to content

Commit

Permalink
feat: use new API endpoint to build CSV reports (#15830)
Browse files Browse the repository at this point in the history
* feat: add `GET /api/v1/chart/{chart_id}/data/?format{format}` API

* feat: use new API endpoint to build CSV reports
  • Loading branch information
betodealmeida authored Jul 22, 2021
1 parent 2113196 commit f6fe29d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions superset/reports/commands/execute.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,9 +142,9 @@ def _get_url(
if self._report_schedule.chart:
if csv:
return get_url_path(
"Superset.explore_json",
csv="true",
form_data=json.dumps({"slice_id": self._report_schedule.chart_id}),
"ChartRestApi.get_data",
pk=self._report_schedule.chart_id,
format="csv",
)
return get_url_path(
"Superset.slice",
Expand Down

0 comments on commit f6fe29d

Please sign in to comment.