Skip to content

Commit

Permalink
refactor: cambio orden en que se envian noticias
Browse files Browse the repository at this point in the history
  • Loading branch information
SBen-IV committed Mar 24, 2023
1 parent 5908d0c commit 0675ca8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion view/threats_and_menaces.py
Original file line number Diff line number Diff line change
Expand Up @@ -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("<b>" + noticia.titulo + "</b>" + "\n\n" + \
noticia.descripcion + "\n\n" + \
"<a href= \"" + noticia.url + "\">" + MAS_INFORMACION + "</a>\n",
Expand Down

0 comments on commit 0675ca8

Please sign in to comment.