Skip to content

Commit

Permalink
Fix a bug when loading DruidDatasource.
Browse files Browse the repository at this point in the history
  • Loading branch information
kim-pham-airbnb committed Mar 30, 2016
1 parent fd40742 commit f67c6b5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion caravel/viz.py
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,8 @@ def cache_timeout(self):
return self.slice.cache_timeout
return (
self.datasource.cache_timeout or
self.datasource.database.cache_timeout or
# Kim: comment this out since it caused a bug for DruidDatasource.
# self.datasource.database.cache_timeout or
config.get("CACHE_DEFAULT_TIMEOUT"))

def get_json(self):
Expand Down

0 comments on commit f67c6b5

Please sign in to comment.