Fix Datetime convertion in cron

This commit is contained in:
Cédric Krier committed 2008-04-08 17:32:50 +02:00
1 parent 5ba569e2ed
commit 0e39d72a0b
1 file changed
+1 -1
+1 -1
View File
@@ -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