Skip to content

Commit d7f0a51

Browse files
author
stephanie
committed
update upateaction
1 parent 3408e84 commit d7f0a51

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

odm2api/ODM2/services/updateService.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,9 @@ def updateResult(self, resultID, valuecount = None):
4040
def updateAction(self, actionID, begin=None, end=None):
4141
q = self._session.query(Actions).filter(Actions.ActionID == int(actionID))
4242
if begin:
43-
q.update({"BeginDateTime": begin.to_datetime()})
43+
q.update({"BeginDateTime": begin})
4444
if end:
45-
q.update({"EndDateTime": end.to_datetime()})
45+
q.update({"EndDateTime": end})
4646

4747
self._session.commit()
4848

0 commit comments

Comments
 (0)