mirror of https://github.com/apache/superset.git
feat: use new API endpoint to build CSV reports (#15830)
* feat: add `GET /api/v1/chart/{chart_id}/data/?format{format}` API * feat: use new API endpoint to build CSV reports
This commit is contained in:
parent
211319673f
commit
f6fe29db87
|
@ -142,9 +142,9 @@ class BaseReportState:
|
|||
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",
|
||||
|
|
Loading…
Reference in New Issue