Browse Source

fixes updates function for Python TurboGears

Keith Newman 10 năm trước cách đây
mục cha
commit
d8d652be39
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  1. 1 0
      frameworks/Python/turbogears/app.py

+ 1 - 0
frameworks/Python/turbogears/app.py

@@ -65,6 +65,7 @@ class RootController(TGController):
             world = db_session.query(World).get(id)
             world.randomNumber = rp()
             worlds.append(world.serialize())
+        db_session.commit()
         return json.dumps(worlds)
 
     @expose("json")