From 69ea7bf5db58f339b518a7497ee480710e5a36e7 Mon Sep 17 00:00:00 2001 From: Mylloon Date: Fri, 30 Jul 2021 13:14:36 +0200 Subject: [PATCH] going back while being in page 1 reach the last page (no call in DB) --- src/utils/reminder.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/utils/reminder.py b/src/utils/reminder.py index 1041501..90d4da3 100644 --- a/src/utils/reminder.py +++ b/src/utils/reminder.py @@ -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