superset-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From maximebeauche...@apache.org
Subject [incubator-superset] branch master updated: Fix time filter in cache (#5681)
Date Mon, 20 Aug 2018 23:37:22 GMT
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 <roberto@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()


Mime
View raw message