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
@@ -20,14 +20,14 @@ from __future__ import annotations
|
||||
import logging
|
||||
from typing import cast
|
||||
|
||||
from flask import current_app
|
||||
from flask import current_app as app
|
||||
|
||||
from superset.commands.distributed_lock.base import BaseDistributedLockCommand
|
||||
from superset.daos.key_value import KeyValueDAO
|
||||
from superset.distributed_lock.types import LockValue
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
stats_logger = current_app.config["STATS_LOGGER"]
|
||||
stats_logger = app.config["STATS_LOGGER"]
|
||||
|
||||
|
||||
class GetDistributedLock(BaseDistributedLockCommand):
|
||||
|
||||
Reference in New Issue
Block a user