Skip to content

Commit

Permalink
[FIX] odoo-connector-runner: round date_enqueued to be ORM compatible
Browse files Browse the repository at this point in the history
  • Loading branch information
sbidoul committed Apr 3, 2015
1 parent 584893e commit 4f493b6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion connector/jobrunner/runner.py
Expand Up @@ -204,7 +204,8 @@ def select_jobs(self, where, args):

def set_job_enqueued(self, uuid):
with closing(self.conn.cursor()) as cr:
cr.execute("UPDATE queue_job SET state=%s, date_enqueued=NOW() "
cr.execute("UPDATE queue_job SET state=%s, "
"date_enqueued=date_trunc('seconds', now()::timestamp) "
"WHERE uuid=%s",
(ENQUEUED, uuid))

Expand Down

0 comments on commit 4f493b6

Please sign in to comment.