number two
parent
e8d4f7c3b2
commit
0cb5829da8
|
@ -190,7 +190,6 @@ async def cleanupSent():
|
|||
returnvalue = True
|
||||
oneMonth = datetime.now() - timedelta(days = 60)
|
||||
|
||||
try:
|
||||
dest = await db.execute(select(Destinatario).where(Destinatario.timestamp<oneMonth, Destinatario.enviado>0).limit(1))
|
||||
|
||||
for destinatario in dest.scalars():
|
||||
|
@ -206,9 +205,6 @@ async def cleanupSent():
|
|||
await db.commit()
|
||||
returnvalue = False
|
||||
|
||||
except:
|
||||
await log.error('Traceback {}'.format(traceback.format_exc()))
|
||||
raise('Error al leer correos pendientes. Reiniciando servicio.')
|
||||
return returnvalue
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue