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

@ -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 == "➡️":