mirror of
https://github.com/apache/superset.git
synced 2026-04-20 08:34:37 +00:00
committed by
GitHub
parent
dea9068647
commit
a9fb853e3e
@@ -22,7 +22,7 @@ from io import BytesIO
|
||||
from typing import Any, Callable, cast
|
||||
from zipfile import is_zipfile, ZipFile
|
||||
|
||||
from flask import g, redirect, request, Response, send_file, url_for
|
||||
from flask import current_app, g, redirect, request, Response, send_file, url_for
|
||||
from flask_appbuilder import permission_name
|
||||
from flask_appbuilder.api import expose, protect, rison, safe
|
||||
from flask_appbuilder.models.sqla.interface import SQLAInterface
|
||||
@@ -332,8 +332,8 @@ class DashboardRestApi(BaseSupersetModelRestApi):
|
||||
"""Deterministic string representation of the API instance for etag_cache."""
|
||||
# pylint: disable=consider-using-f-string
|
||||
return "Superset.dashboards.api.DashboardRestApi@v{}{}".format(
|
||||
self.appbuilder.app.config["VERSION_STRING"],
|
||||
self.appbuilder.app.config["VERSION_SHA"],
|
||||
current_app.config["VERSION_STRING"],
|
||||
current_app.config["VERSION_SHA"],
|
||||
)
|
||||
|
||||
@expose("/<id_or_slug>", methods=("GET",))
|
||||
|
||||
Reference in New Issue
Block a user