You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by jo...@apache.org on 2018/08/01 18:26:06 UTC
[incubator-superset] branch master updated: Stop pretty printing
dashboard json (#5538)
This is an automated email from the ASF dual-hosted git repository.
johnbodley 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 b564aa4 Stop pretty printing dashboard json (#5538)
b564aa4 is described below
commit b564aa43dce84790642de8a8abfd0b2ddf7a6507
Author: michellethomas <mi...@gmail.com>
AuthorDate: Wed Aug 1 11:26:02 2018 -0700
Stop pretty printing dashboard json (#5538)
---
superset/views/core.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/superset/views/core.py b/superset/views/core.py
index 0e41d45..e50ab21 100755
--- a/superset/views/core.py
+++ b/superset/views/core.py
@@ -1642,7 +1642,7 @@ class Superset(BaseSupersetView):
session.merge(slc)
session.flush()
- dashboard.position_json = json.dumps(positions, indent=4, sort_keys=True)
+ dashboard.position_json = json.dumps(positions, sort_keys=True)
md = dashboard.params_dict
dashboard.css = data.get('css')
dashboard.dashboard_title = data['dashboard_title']
@@ -1659,7 +1659,7 @@ class Superset(BaseSupersetView):
{key: v for key, v in default_filters_data.items()
if int(key) in slice_ids}
md['default_filters'] = json.dumps(applicable_filters)
- dashboard.json_metadata = json.dumps(md, indent=4)
+ dashboard.json_metadata = json.dumps(md)
@api
@has_access_api