mistercrunch closed pull request #4240: [cache] Fixing json.dumps for timestamp
URL: https://github.com/apache/incubator-superset/pull/4240
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

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 @@ def get_payload(self, force=False):
                     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,
                     })


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to