better check for the call in the db
This commit is contained in:
parent
bdc17c1fef
commit
b0ed0c918e
1 changed files with 5 additions and 3 deletions
|
@ -123,9 +123,11 @@ class Reminder(Database):
|
|||
if page + 1 <= int(infoDescription[2]):
|
||||
page += 1
|
||||
else:
|
||||
pageMAX = -(-len(self.listeReminder(utilisateur.id, payload.guild_id)) // 5)
|
||||
if pageMAX > 1:
|
||||
page += 1
|
||||
if len(findall(r"L'utilisateur n'a aucun rappel en attente ou page n°\d+ vide !", embed["fields"][0]["value"])) == 1:
|
||||
if len(self.listeReminder(utilisateur.id, payload.guild_id)) > 0:
|
||||
page += 1
|
||||
else:
|
||||
return False, False
|
||||
else:
|
||||
return False, False
|
||||
embed, _ = Reminder().embedListe(utilisateur, payload.guild_id, page, embed["color"])
|
||||
|
|
Reference in a new issue