mirror of https://github.com/apache/superset.git
Stop pretty printing dashboard json (#5538)
This commit is contained in:
parent
e52518c3cd
commit
b564aa43dc
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue