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/01/19 20:10:46 UTC

[incubator-superset] branch master updated: [cache] Fixing json.dumps for timestamp (#4240)

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 <45...@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" <co...@superset.apache.org>'].