update reminderlist even when the pageMAX in the message is less or equal than 1

This commit is contained in:
Mylloon 2021-07-30 12:59:53 +02:00
parent 79ec9cdc57
commit bdc17c1fef

View file

@ -122,6 +122,10 @@ class Reminder(Database):
if payload.emoji.name == "➡️": if payload.emoji.name == "➡️":
if page + 1 <= int(infoDescription[2]): if page + 1 <= int(infoDescription[2]):
page += 1 page += 1
else:
pageMAX = -(-len(self.listeReminder(utilisateur.id, payload.guild_id)) // 5)
if pageMAX > 1:
page += 1
else: else:
return False, False return False, False
embed, _ = Reminder().embedListe(utilisateur, payload.guild_id, page, embed["color"]) embed, _ = Reminder().embedListe(utilisateur, payload.guild_id, page, embed["color"])