Skip to content
This repository has been archived by the owner on Nov 3, 2023. It is now read-only.

Stop pretty printing dashboard json (#5538) #71

Merged
merged 1 commit into from
Aug 1, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions superset/views/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -1632,7 +1632,7 @@ def _set_dash_metadata(dashboard, data):
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']
Expand All @@ -1649,7 +1649,7 @@ def _set_dash_metadata(dashboard, data):
{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
Expand Down