From eabdafe7741446daafccea874d7fbc5583e64dcd Mon Sep 17 00:00:00 2001 From: Mylloon Date: Sun, 22 Aug 2021 16:01:35 +0200 Subject: [PATCH] fix return --- src/utils/reminder.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/utils/reminder.py b/src/utils/reminder.py index 5229102..243b924 100644 --- a/src/utils/reminder.py +++ b/src/utils/reminder.py @@ -80,12 +80,9 @@ async def embedListeReminder(utilisateur, guildID, page, color = None, refresh_m for emoji in ["⬅️", "➡️"]: await refresh_message.add_reaction(emoji) else: - return (False, False, False) + return (False, False) - if pageMAX > 1: - refresh = False - else: - refresh = True + if pageMAX == 1: page = 1 # force page 1 if color == None: color = Colour.random()