going back while being in page 1 reach the last page (no call in DB)

This commit is contained in:
Mylloon 2021-07-30 13:14:36 +02:00
parent b0ed0c918e
commit 69ea7bf5db

View file

@ -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