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: [cache] Fixing json.dumps for timestamp (#4240)
Date Fri, 19 Jan 2018 20:10:46 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 8175e19  [cache] Fixing json.dumps for timestamp (#4240)
8175e19 is described below

commit 8175e19f7225dfd9bf70e55f04d816a7639509e2
Author: John Bodley <4567245+john-bodley@users.noreply.github.com>
AuthorDate: Fri Jan 19 12:10:39 2018 -0800

    [cache] Fixing json.dumps for timestamp (#4240)
---
 superset/viz.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/superset/viz.py b/superset/viz.py
index 6db51a1..bb0bcf6 100644
--- a/superset/viz.py
+++ b/superset/viz.py
@@ -289,7 +289,7 @@ class BaseViz(object):
                     self.status != utils.QueryStatus.FAILED):
                 cached_dttm = datetime.utcnow().isoformat().split('.')[0]
                 try:
-                    cache_value = json.dumps({
+                    cache_value = self.json_dumps({
                         'data': data,
                         'dttm': cached_dttm,
                     })

-- 
To stop receiving notification emails like this one, please contact
['"commits@superset.apache.org" <commits@superset.apache.org>'].

Mime
View raw message