Skip to content

Commit

Permalink
black
Browse files Browse the repository at this point in the history
  • Loading branch information
exemplary-citizen authored May 24, 2021
1 parent e67bb01 commit 674b312
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion superset/views/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -438,7 +438,9 @@ def generate_json(
self, viz_obj: BaseViz, response_type: Optional[str] = None
) -> FlaskResponse:
if response_type == utils.ChartDataResultFormat.CSV:
return CsvResponse(viz_obj.get_csv(), headers=generate_download_headers("csv"))
return CsvResponse(
viz_obj.get_csv(), headers=generate_download_headers("csv")
)

if response_type == utils.ChartDataResultFormat.XML:
payload = viz_obj.get_payload()
Expand Down

0 comments on commit 674b312

Please sign in to comment.