mirror of
https://github.com/apache/superset.git
synced 2026-04-19 16:14:52 +00:00
chore: proper current_app.config proxy usage (#34345)
Co-authored-by: Claude <noreply@anthropic.com>
This commit is contained in:
committed by
GitHub
parent
6c9cda758a
commit
cb27d5fe8d
@@ -16,10 +16,10 @@
|
||||
# under the License.
|
||||
from typing import TYPE_CHECKING
|
||||
|
||||
from flask import current_app as app
|
||||
from flask_appbuilder import expose
|
||||
from flask_appbuilder.security.decorators import has_access
|
||||
|
||||
from superset import app
|
||||
from superset.constants import MODEL_VIEW_RW_METHOD_PERMISSION_MAP
|
||||
from superset.superset_typing import FlaskResponse
|
||||
from superset.views.base import BaseSupersetView
|
||||
@@ -27,9 +27,6 @@ from superset.views.base import BaseSupersetView
|
||||
if TYPE_CHECKING:
|
||||
from werkzeug.datastructures import FileStorage
|
||||
|
||||
config = app.config
|
||||
stats_logger = config["STATS_LOGGER"]
|
||||
|
||||
|
||||
def upload_stream_write(form_file_field: "FileStorage", path: str) -> None:
|
||||
chunk_size = app.config["UPLOAD_CHUNK_SIZE"]
|
||||
|
||||
Reference in New Issue
Block a user