fix remove notified

Signed-off-by: Omar Sánchez Pizarro <omar.sanchez@pistacero.net>
This commit is contained in:
Omar Sánchez Pizarro
2025-10-10 11:40:32 +02:00
parent cf29b69733
commit 60db36ba99
2 changed files with 2 additions and 7 deletions

View File

@@ -52,10 +52,6 @@ class QueueManager:
# Procesar el artículo
try:
self._telegram_manager.send_telegram_article(search_name, article, thread_id)
# Mantener solo los primeros NOTIFIED_ARTICLES_LIMIT artículos después de enviar
if len(self._notified_articles) > NOTIFIED_ARTICLES_LIMIT:
self._notified_articles = self._notified_articles[NOTIFIED_ARTICLES_LIMIT:]
except Exception as e:
self.logger.error(f"Error al enviar artículo a Telegram: {e}")