Skip to content

Commit

Permalink
Fixing build
Browse files Browse the repository at this point in the history
  • Loading branch information
mistercrunch committed Apr 12, 2017
1 parent fcf4ba2 commit 0f53811
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion superset/views/core.py
Expand Up @@ -1257,7 +1257,7 @@ def copy_dash(self, dashboard_id):
self._set_dash_metadata(dash, data)
session.add(dash)
session.commit()
dash_json = dash.json_data
dash_json = json.dumps(dash.data)
session.close()
return json_success(dash_json)

Expand Down
2 changes: 1 addition & 1 deletion tests/core_tests.py
Expand Up @@ -396,7 +396,7 @@ def test_copy_dash(self, username='admin'):
self.client.post(url, data=dict(data=json.dumps(data)))
dash = db.session.query(models.Dashboard).filter_by(
id=dash_id).first()
orig_json_data = json.loads(dash.json_data)
orig_json_data = dash.data

# Verify that copy matches original
url = '/superset/copy_dash/{}/'.format(dash_id)
Expand Down

0 comments on commit 0f53811

Please sign in to comment.