From f25cd833f8aa399f179f797d9ece3c198c6a45d1 Mon Sep 17 00:00:00 2001 From: Finn Christiansen Date: Mon, 17 Jun 2024 07:37:14 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Fix=20typo=20which=20causes=20cr?= =?UTF-8?q?ash?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- matrix_bot_praying_times/__main__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/matrix_bot_praying_times/__main__.py b/matrix_bot_praying_times/__main__.py index 52b37a9..6b3e87c 100644 --- a/matrix_bot_praying_times/__main__.py +++ b/matrix_bot_praying_times/__main__.py @@ -120,7 +120,7 @@ async def set_reminder(room, message) -> None: response = "You did not set your location yet." await bot.api.send_markdown_message(room.room_id, response) else: - user.reminder_time_in_minues = minutes + user.reminder_time_in_minutes = minutes user.room_id = room.room_id response = "Your reminder was set to {} minutes before praying.".format(minutes) schedule_reminder(username) @@ -151,7 +151,7 @@ def schedule_reminder(username) -> None: # schedule praying times but skip the ones which already have been passed today seconds = int((praying_time - now).total_seconds()) message = "{} is at {}".format(prayer, praying_time.strftime("%H:%M")) - asyncio.ensure_future(remind(username, message, seconds - user.reminder_time_in_minues * 60)) + asyncio.ensure_future(remind(username, message, seconds - user.reminder_time_in_minutes * 60)) # save date of last schedule for user