mirror of
https://github.com/apache/superset.git
synced 2026-05-12 19:35:17 +00:00
fix(dashboard): overload issue in dashboard export to excel (#29418)
Co-authored-by: Evan Rusackas <evan@preset.io> Co-authored-by: Claude <claude@anthropic.com> Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
committed by
Michael S. Molina
parent
e2495119a3
commit
54b313c659
@@ -45,6 +45,7 @@ class QueryContextFactory: # pylint: disable=too-few-public-methods
|
||||
def create( # pylint: disable=too-many-arguments
|
||||
self,
|
||||
*,
|
||||
current_slice: Slice | None = None,
|
||||
datasource: DatasourceDict,
|
||||
queries: list[dict[str, Any]],
|
||||
form_data: dict[str, Any] | None = None,
|
||||
@@ -58,7 +59,9 @@ class QueryContextFactory: # pylint: disable=too-few-public-methods
|
||||
datasource_model_instance = self._convert_to_model(datasource)
|
||||
|
||||
slice_ = None
|
||||
if form_data and form_data.get("slice_id") is not None:
|
||||
if isinstance(current_slice, Slice):
|
||||
slice_ = current_slice
|
||||
elif form_data and form_data.get("slice_id") is not None:
|
||||
slice_ = self._get_slice(form_data.get("slice_id"))
|
||||
|
||||
result_type = result_type or ChartDataResultType.FULL
|
||||
|
||||
Reference in New Issue
Block a user