From 559dc665599f2ffcb261f6e739377ddcdbff1270 Mon Sep 17 00:00:00 2001 From: Mylloon Date: Mon, 30 Aug 2021 09:35:43 +0200 Subject: [PATCH] fix extra 3 dots at end of all the todos --- src/utils/todo.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/utils/todo.py b/src/utils/todo.py index 11bcc8c..dbc7c0b 100644 --- a/src/utils/todo.py +++ b/src/utils/todo.py @@ -81,9 +81,7 @@ async def embedListeToDo(utilisateur, page, color = None, refresh_message = None curseur = limit - (elementPerPage - 1) for todo in todos[limit - elementPerPage:]: if curseur <= limit: - texte = todo[1] - texte = f"{texte[:1021]}..." - embed.add_field(value = texte, name = f"#{todo[0]} • Fais le {timestampScreen(intToDatetime(todo[2]))}", inline = False) + embed.add_field(value = todo[1], name = f"#{todo[0]} • Fais le {timestampScreen(intToDatetime(todo[2]))}", inline = False) curseur += 1 else: embed.add_field(name = "\u200b", value = f"L'utilisateur n'a aucun To Do ou page n°{page} vide !")