chore: proper current_app.config proxy usage (#34345)

Co-authored-by: Claude <noreply@anthropic.com>
This commit is contained in:
Maxime Beauchemin
2025-07-31 19:27:42 -07:00
committed by GitHub
parent 6c9cda758a
commit cb27d5fe8d
144 changed files with 1428 additions and 1119 deletions

View File

@@ -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):