Added session.flush() calls to update scheduled_operation object.

This commit is contained in:
Alexis Lahouze 2015-08-18 17:15:36 +02:00
parent 08e89bec13
commit cf657c1ad7

View File

@ -86,6 +86,8 @@ class ScheduledOperationListResource(Resource):
scheduled_operation.reschedule(session) scheduled_operation.reschedule(session)
session.flush()
return scheduled_operation, 201 return scheduled_operation, 201
@ -155,6 +157,8 @@ class ScheduledOperationResource(Resource):
scheduled_operation.reschedule(session) scheduled_operation.reschedule(session)
session.flush()
return scheduled_operation return scheduled_operation