Retoques menores en refresher.

This commit is contained in:
pablomartincalvo 2018-10-18 22:36:10 +02:00
parent 3fdbc5f766
commit 238b0f5305
3 changed files with 163 additions and 148 deletions

View file

@ -49,17 +49,16 @@ class CapturasInterface():
ON da.ad_url LIKE CONCAT('%', uc.referencia, '%')
WHERE uc.fecha_captura < (NOW() - INTERVAL 10 day)
AND da.ad_url is null
ORDER BY RAND()
LIMIT 1
"""
cursor_result = self.anunciosdb.query(query_statement, dictionary=True)
try:
return c
return cursor_result.fetchone()
except:
return None
capturas_interface = CapturasInterface()