mirror of
https://github.com/apache/superset.git
synced 2026-05-12 19:35:17 +00:00
fix: add __init__.py to key_value (#17730)
* Add __init__.py * Lisence * Linter Co-authored-by: Bogdan Kyryliuk <bogdankyryliuk@dropbox.com>
This commit is contained in:
@@ -38,8 +38,8 @@ class GetKeyValueCommand(BaseCommand, ABC):
|
||||
def run(self) -> Model:
|
||||
try:
|
||||
config = app.config["FILTER_STATE_CACHE_CONFIG"]
|
||||
refreshTimeout = config.get("REFRESH_TIMEOUT_ON_RETRIEVAL")
|
||||
return self.get(self._resource_id, self._key, refreshTimeout)
|
||||
refresh_timeout = config.get("REFRESH_TIMEOUT_ON_RETRIEVAL")
|
||||
return self.get(self._resource_id, self._key, refresh_timeout)
|
||||
except SQLAlchemyError as ex:
|
||||
logger.exception("Error running get command")
|
||||
raise KeyValueGetFailedError() from ex
|
||||
@@ -48,5 +48,5 @@ class GetKeyValueCommand(BaseCommand, ABC):
|
||||
pass
|
||||
|
||||
@abstractmethod
|
||||
def get(self, resource_id: int, key: str, refreshTimeout: bool) -> Optional[str]:
|
||||
def get(self, resource_id: int, key: str, refresh_timeout: bool) -> Optional[str]:
|
||||
...
|
||||
|
||||
Reference in New Issue
Block a user