mirror of
https://github.com/apache/superset.git
synced 2024-09-12 00:29:39 -04:00
Fix lint warning.
This commit is contained in:
parent
4a77b70046
commit
e5553ab45e
@ -218,10 +218,10 @@ class BaseViz(object):
|
|||||||
if self.slice and self.slice.cache_timeout:
|
if self.slice and self.slice.cache_timeout:
|
||||||
return self.slice.cache_timeout
|
return self.slice.cache_timeout
|
||||||
if self.datasource.cache_timeout:
|
if self.datasource.cache_timeout:
|
||||||
return self.datasource.cache_timeout
|
return self.datasource.cache_timeout
|
||||||
if hasattr(self.datasource, 'database') \
|
if hasattr(self.datasource, 'database') \
|
||||||
and self.datasource.database.cache_timeout:
|
and self.datasource.database.cache_timeout:
|
||||||
return self.datasource.database.cache_timeout
|
return self.datasource.database.cache_timeout
|
||||||
return config.get("CACHE_DEFAULT_TIMEOUT")
|
return config.get("CACHE_DEFAULT_TIMEOUT")
|
||||||
|
|
||||||
def get_json(self):
|
def get_json(self):
|
||||||
|
Loading…
Reference in New Issue
Block a user