Added session.flush() calls to update scheduled_operation object.
1 parent
08e89bec13
commit
cf657c1ad7
1 file changed
+4
@@ -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
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user