Browse Source

fixes updates function for Python wheezy.web

Keith Newman 10 years ago
parent
commit
92ae386780
1 changed files with 1 additions and 0 deletions
  1. 1 0
      frameworks/Python/wheezyweb/app.py

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

@@ -106,6 +106,7 @@ class UpdatesHandler(BaseHandler):
             world = db_session.query(World).get(id)
             world.randomNumber = rp()
             worlds.append(world.serialize())
+        db_session.commit()
         return self.json_response(worlds)
 
 class FortuneHandler(BaseHandler):