From a633fb9d1da987cc58cc8da0cdf6cbf376220c7b Mon Sep 17 00:00:00 2001 From: imunnic Date: Thu, 13 Mar 2025 22:22:28 +0100 Subject: [PATCH] a ver si ahora si --- app/routes.py | 1 + app/webscrapper.py | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/app/routes.py b/app/routes.py index 6f9abac..2bb19ff 100644 --- a/app/routes.py +++ b/app/routes.py @@ -150,6 +150,7 @@ def get_titles_by_keyword_in_range( # # Convertir resultados en una sola cadena separada por comas # titles = ", ".join([titulo[0] for titulo in results if titulo[0]]) + titles = [titulo[0] for titulo in results if titulo[0]] return {"titles": titles} diff --git a/app/webscrapper.py b/app/webscrapper.py index 6ac360f..390af00 100644 --- a/app/webscrapper.py +++ b/app/webscrapper.py @@ -184,4 +184,3 @@ def search_from_keywords_file(): logging.info(f"Error al leer el archivo 'keywords.txt': {e}") # Ejecutar la búsqueda desde el archivo -search_from_keywords_file()