fix extra 3 dots at end of all the todos
This commit is contained in:
parent
0ac60a7d07
commit
559dc66559
1 changed files with 1 additions and 3 deletions
|
@ -81,9 +81,7 @@ async def embedListeToDo(utilisateur, page, color = None, refresh_message = None
|
||||||
curseur = limit - (elementPerPage - 1)
|
curseur = limit - (elementPerPage - 1)
|
||||||
for todo in todos[limit - elementPerPage:]:
|
for todo in todos[limit - elementPerPage:]:
|
||||||
if curseur <= limit:
|
if curseur <= limit:
|
||||||
texte = todo[1]
|
embed.add_field(value = todo[1], name = f"#{todo[0]} • Fais le {timestampScreen(intToDatetime(todo[2]))}", inline = False)
|
||||||
texte = f"{texte[:1021]}..."
|
|
||||||
embed.add_field(value = texte, name = f"#{todo[0]} • Fais le {timestampScreen(intToDatetime(todo[2]))}", inline = False)
|
|
||||||
curseur += 1
|
curseur += 1
|
||||||
else:
|
else:
|
||||||
embed.add_field(name = "\u200b", value = f"L'utilisateur n'a aucun To Do ou page n°{page} vide !")
|
embed.add_field(name = "\u200b", value = f"L'utilisateur n'a aucun To Do ou page n°{page} vide !")
|
||||||
|
|
Reference in a new issue