From 674b312d5359fcbacaf7ea18adf80eece0e0c35e Mon Sep 17 00:00:00 2001 From: Shiva Raisinghani Date: Mon, 24 May 2021 03:51:52 -0700 Subject: [PATCH] black --- superset/views/core.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/superset/views/core.py b/superset/views/core.py index 1e1d668d6144e..74cf3e90003a1 100755 --- a/superset/views/core.py +++ b/superset/views/core.py @@ -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()