🐛 Fix typo which causes crash
This commit is contained in:
parent
1f1ae5077e
commit
f25cd833f8
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue