going back while being in page 1 reach the last page (no call in DB)
This commit is contained in:
parent
b0ed0c918e
commit
69ea7bf5db
1 changed files with 4 additions and 1 deletions
|
@ -118,7 +118,10 @@ class Reminder(Database):
|
|||
if page > 1:
|
||||
page -= 1
|
||||
else:
|
||||
return False, False
|
||||
if int(infoDescription[2]) > 1:
|
||||
page += 1
|
||||
else:
|
||||
return False, False
|
||||
if payload.emoji.name == "➡️":
|
||||
if page + 1 <= int(infoDescription[2]):
|
||||
page += 1
|
||||
|
|
Reference in a new issue