From 0675ca8b46438621d52364ca1f6496173df5c5a2 Mon Sep 17 00:00:00 2001 From: SBen-IV Date: Fri, 24 Mar 2023 18:07:05 -0300 Subject: [PATCH] refactor: cambio orden en que se envian noticias --- view/threats_and_menaces.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/view/threats_and_menaces.py b/view/threats_and_menaces.py index 5081dc0..35a415a 100644 --- a/view/threats_and_menaces.py +++ b/view/threats_and_menaces.py @@ -12,7 +12,7 @@ def __init__(self): def enviar_noticias(self, chat: Chat, noticias: list) -> None: self.logger.info("Enviando noticias a {chat_name}.".format(chat_name=chat.title)) - for noticia in noticias: + for noticia in reversed(noticias): chat.send_message("" + noticia.titulo + "" + "\n\n" + \ noticia.descripcion + "\n\n" + \ "" + MAS_INFORMACION + "\n",