瀏覽代碼

fixes updates function for Python CherryPy

Keith Newman 10 年之前
父節點
當前提交
8a6e75be53
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      frameworks/Python/cherrypy/app.py

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

@@ -101,6 +101,7 @@ class CherryPyBenchmark(object):
             world = cherrypy.request.db.query(World).get(id)
             world.randomNumber = rp()
             worlds.append(world.serialize())
+        cherrypy.request.db.commit()
         return worlds
 
     @cherrypy.expose