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
|
@ -117,6 +117,9 @@ class Reminder(Database):
|
||||||
if payload.emoji.name == "⬅️":
|
if payload.emoji.name == "⬅️":
|
||||||
if page > 1:
|
if page > 1:
|
||||||
page -= 1
|
page -= 1
|
||||||
|
else:
|
||||||
|
if int(infoDescription[2]) > 1:
|
||||||
|
page += 1
|
||||||
else:
|
else:
|
||||||
return False, False
|
return False, False
|
||||||
if payload.emoji.name == "➡️":
|
if payload.emoji.name == "➡️":
|
||||||
|
|
Reference in a new issue