Skip to content

Commit

Permalink
Fix time filter in cache (apache#5681)
Browse files Browse the repository at this point in the history
(cherry picked from commit fef39a7)
  • Loading branch information
betodealmeida committed Aug 22, 2018
1 parent 96f5b46 commit 94247db
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions superset/viz.py
Original file line number Diff line number Diff line change
Expand Up @@ -329,9 +329,7 @@ def cache_key(self, query_obj):
for k in ['from_dttm', 'to_dttm']:
del cache_dict[k]

for k in ['since', 'until']:
cache_dict[k] = self.form_data.get(k)

cache_dict['time_range'] = self.form_data.get('time_range')
cache_dict['datasource'] = self.datasource.uid
json_data = self.json_dumps(cache_dict, sort_keys=True)
return hashlib.md5(json_data.encode('utf-8')).hexdigest()
Expand Down

0 comments on commit 94247db

Please sign in to comment.