Skip to content

Commit 511043e

Browse files
author
To
committed
Fix loading read only map
1 parent 1a04ee9 commit 511043e

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

websockets/controller.py

-2
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ def load_plan_by_read_token(self, read_token):
3434
plan = session.query(Plan).filter(Plan.read_token == read_token).one()
3535
if plan is None:
3636
raise Exception("Plan not found")
37-
session.expunge_all()
3837
self.plan_id = plan.id
3938
self.plan_token = plan.token
4039
self.can_edit = False
@@ -48,7 +47,6 @@ def create_plan(self, name=''):
4847
session.add(plan)
4948
detachedPlan = plan.toJSON()
5049
session.commit()
51-
session.expunge_all()
5250
self.plan_id = plan.id
5351
self.plan_token = plan.token
5452
self.can_edit = True

0 commit comments

Comments
 (0)