Alterado refresher para no necesitar comprobar si hay anuncios viejos.
This commit is contained in:
parent
5aba6309f0
commit
e304069684
1 changed files with 3 additions and 2 deletions
|
|
@ -5,6 +5,7 @@ from db_layer.capturas_interface import capturas_interface
|
|||
from db_layer.capturing_tasks_interface import capturing_interface
|
||||
from core.config import refresher_delay
|
||||
|
||||
|
||||
class Refresher:
|
||||
|
||||
def start(self):
|
||||
|
|
@ -12,8 +13,8 @@ class Refresher:
|
|||
while True:
|
||||
sleep(refresher_delay)
|
||||
|
||||
if capturas_interface.old_ads_exist():
|
||||
old_ad = capturas_interface.get_old_ad()
|
||||
old_ad = capturas_interface.get_old_ad()
|
||||
if old_ad:
|
||||
capturing_interface.create_capturing_task(str(old_ad['referencia']))
|
||||
|
||||
@staticmethod
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue