Added session.flush() calls to update scheduled_operation object.
This commit is contained in:
parent
08e89bec13
commit
cf657c1ad7
@ -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
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user