From 8175e19f7225dfd9bf70e55f04d816a7639509e2 Mon Sep 17 00:00:00 2001 From: John Bodley <4567245+john-bodley@users.noreply.github.com> Date: Fri, 19 Jan 2018 12:10:39 -0800 Subject: [PATCH] [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 6db51a1f50..bb0bcf604d 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, })