fix(excel): remove unwanted index column from Excel exports (#38176)

Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Evan Rusackas
2026-02-23 11:28:40 -05:00
committed by GitHub
parent 228b598409
commit c4eb7de6de
2 changed files with 5 additions and 3 deletions

View File

@@ -259,7 +259,9 @@ class QueryContextProcessor:
)
elif self._query_context.result_format == ChartDataResultFormat.XLSX:
excel.apply_column_types(df, coltypes)
result = excel.df_to_excel(df, **current_app.config["EXCEL_EXPORT"])
result = excel.df_to_excel(
df, index=include_index, **current_app.config["EXCEL_EXPORT"]
)
return result or ""
return df.to_dict(orient="records")