mirror of
https://github.com/apache/superset.git
synced 2026-04-19 08:04:53 +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
@@ -35,8 +35,9 @@ logger = logging.getLogger(__name__)
|
||||
class GetFormDataCommand(BaseCommand, ABC):
|
||||
def __init__(self, cmd_params: CommandParameters) -> None:
|
||||
self._cmd_params = cmd_params
|
||||
config = app.config["EXPLORE_FORM_DATA_CACHE_CONFIG"]
|
||||
self._refresh_timeout = config.get("REFRESH_TIMEOUT_ON_RETRIEVAL")
|
||||
self._refresh_timeout = app.config["EXPLORE_FORM_DATA_CACHE_CONFIG"].get(
|
||||
"REFRESH_TIMEOUT_ON_RETRIEVAL"
|
||||
)
|
||||
|
||||
def run(self) -> Optional[str]:
|
||||
try:
|
||||
|
||||
Reference in New Issue
Block a user