From b564aa43dce84790642de8a8abfd0b2ddf7a6507 Mon Sep 17 00:00:00 2001 From: michellethomas Date: Wed, 1 Aug 2018 11:26:02 -0700 Subject: [PATCH] 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 0e41d4576b..e50ab21043 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