mirror of
https://github.com/apache/superset.git
synced 2026-05-12 19:35:17 +00:00
fix(mcp): fix crashes in list tools, dataset info, chart preview, and add owner/favorite filters (#38277)
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -959,7 +959,7 @@ def _export_data_as_csv(
|
||||
chart_id=chart.id,
|
||||
chart_name=chart.slice_name or f"Chart {chart.id}",
|
||||
chart_type=chart.viz_type or "unknown",
|
||||
columns=[], # Not needed for CSV export
|
||||
columns=[], # Column names are embedded in CSV content
|
||||
data=[], # CSV content is in csv_data field
|
||||
row_count=len(data),
|
||||
total_rows=len(data),
|
||||
@@ -1114,7 +1114,7 @@ def _create_excel_chart_data(
|
||||
chart_id=chart.id,
|
||||
chart_name=chart_name,
|
||||
chart_type=chart.viz_type or "unknown",
|
||||
columns=[],
|
||||
columns=[], # Column names are embedded in the Excel file
|
||||
data=[],
|
||||
row_count=len(data),
|
||||
total_rows=len(data),
|
||||
@@ -1147,7 +1147,7 @@ def _create_excel_chart_data_xlsxwriter(
|
||||
chart_id=chart.id,
|
||||
chart_name=chart_name,
|
||||
chart_type=chart.viz_type or "unknown",
|
||||
columns=[],
|
||||
columns=[], # Column names are embedded in the Excel file
|
||||
data=[],
|
||||
row_count=len(data),
|
||||
total_rows=len(data),
|
||||
|
||||
Reference in New Issue
Block a user