Skip to content

Commit

Permalink
Removing leftover print statetments
Browse files Browse the repository at this point in the history
  • Loading branch information
mistercrunch committed Oct 2, 2015
1 parent 33a4577 commit 3f9c838
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions panoramix/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -323,12 +323,10 @@ def datasource(self, datasource_type, datasource_id):
def save_dash(self, dashboard_id):
data = json.loads(request.form.get('data'))
slice_ids = [int(d['slice_id']) for d in data]
print slice_ids
session = db.session()
Dash = models.Dashboard
dash = session.query(Dash).filter_by(id=dashboard_id).first()
dash.slices = [o for o in dash.slices if o.id in slice_ids]
print dash.slices
dash.position_json = json.dumps(data, indent=4)
session.merge(dash)
session.commit()
Expand Down

0 comments on commit 3f9c838

Please sign in to comment.