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: json_iso_dttm_ser use for TableViz (#6563)
Date Thu, 27 Dec 2018 19:38:12 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 f424af8  json_iso_dttm_ser use for TableViz (#6563)
f424af8 is described below

commit f424af838544ae7dc9c331994ee4b8e46673f91d
Author: Karri Niemelä <kakoni@gmail.com>
AuthorDate: Thu Dec 27 21:38:05 2018 +0200

    json_iso_dttm_ser use for TableViz (#6563)
---
 superset/viz.py | 13 +++++--------
 1 file changed, 5 insertions(+), 8 deletions(-)

diff --git a/superset/viz.py b/superset/viz.py
index a3c5f06..55a4e8a 100644
--- a/superset/viz.py
+++ b/superset/viz.py
@@ -595,14 +595,11 @@ class TableViz(BaseViz):
         return data
 
     def json_dumps(self, obj, sort_keys=False):
-        if self.form_data.get('all_columns'):
-            return json.dumps(
-                obj,
-                default=utils.json_iso_dttm_ser,
-                sort_keys=sort_keys,
-                ignore_nan=True)
-        else:
-            return super(TableViz, self).json_dumps(obj)
+        return json.dumps(
+            obj,
+            default=utils.json_iso_dttm_ser,
+            sort_keys=sort_keys,
+            ignore_nan=True)
 
 
 class TimeTableViz(BaseViz):


Mime
View raw message