Fix Datetime convertion in cron
This commit is contained in:
1 parent
5ba569e2ed
commit
0e39d72a0b
1 file changed
+1
-1
+1
-1
@@ -96,7 +96,7 @@ class Cron(OSV, Agent):
|
||||
'AND nextcall <= now() ' \
|
||||
'ORDER BY priority')
|
||||
for job in cursor.dictfetchall():
|
||||
nextcall = DateTime.strptime(job['nextcall'],
|
||||
nextcall = DateTime.strptime(str(job['nextcall']),
|
||||
'%Y-%m-%d %H:%M:%S')
|
||||
numbercall = job['numbercall']
|
||||
done = False
|
||||
|
||||
Reference in new issue
Block a user