Fix bug when marking batch as executed.
Not sure why that ever worked, actually?
This commit is contained in:
parent
bf49f30fff
commit
46c3750d38
|
@ -700,7 +700,7 @@ class BatchCrud(BaseCrud):
|
||||||
else:
|
else:
|
||||||
if result:
|
if result:
|
||||||
batch.executed = datetime.datetime.utcnow()
|
batch.executed = datetime.datetime.utcnow()
|
||||||
batch.executed_by = self.request.user
|
batch.executed_by = session.merge(self.request.user)
|
||||||
session.commit()
|
session.commit()
|
||||||
else:
|
else:
|
||||||
session.rollback()
|
session.rollback()
|
||||||
|
|
Loading…
Reference in a new issue