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/12/27 19:38:12 UTC
[incubator-superset] branch master updated: json_iso_dttm_ser use
for TableViz (#6563)
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ä <ka...@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):