This is an automated email from the ASF dual-hosted git repository. mayurnewase pushed a commit to branch fix-21635 in repository https://gitbox.apache.org/repos/asf/superset.git
commit 1e6e2cfa8ad8628cbbdf26623b8a2d4e34b4886a Author: Mayur <[email protected]> AuthorDate: Thu Sep 29 10:49:15 2022 +0530 check slice cache timeout --- superset/common/query_context_factory.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/superset/common/query_context_factory.py b/superset/common/query_context_factory.py index 84fdeb7109..ee6fdefe34 100644 --- a/superset/common/query_context_factory.py +++ b/superset/common/query_context_factory.py @@ -60,8 +60,7 @@ class QueryContextFactory: # pylint: disable=too-few-public-methods slice = None if form_data and form_data.get("slice_id") is not None: - slice_id = form_data.get("slice_id") - slice = self._get_slice(slice_id) + slice = self._get_slice(form_data.get("slice_id")) result_type = result_type or ChartDataResultType.FULL result_format = result_format or ChartDataResultFormat.JSON
