Explorar el Código

fixes updates function for Python CherryPy

Keith Newman hace 10 años
padre
commit
8a6e75be53
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  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