You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by ma...@apache.org on 2018/08/20 23:37:22 UTC

[incubator-superset] branch master updated: Fix time filter in cache (#5681)

This is an automated email from the ASF dual-hosted git repository.

maximebeauchemin pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-superset.git


The following commit(s) were added to refs/heads/master by this push:
     new fef39a7  Fix time filter in cache (#5681)
fef39a7 is described below

commit fef39a787840ebb1ae96e2d01f8cb1b5a1ed45e5
Author: Beto Dealmeida <ro...@dealmeida.net>
AuthorDate: Mon Aug 20 16:37:19 2018 -0700

    Fix time filter in cache (#5681)
---
 superset/viz.py | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/superset/viz.py b/superset/viz.py
index 1541794..4f2c411 100644
--- a/superset/viz.py
+++ b/superset/viz.py
@@ -331,9 +331,7 @@ class BaseViz(object):
         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()