Skip to content

Commit

Permalink
fix: use total_seconds() instead of .seconds
Browse files Browse the repository at this point in the history
  • Loading branch information
dantetemplar committed Sep 28, 2024
1 parent bc347a6 commit 3037357
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bot/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ async def receptionist_notifications_loop():
planned_date += datetime.timedelta(days=days_until_monday)
if planned_date < current_date:
planned_date += datetime.timedelta(days=7)
wait = (planned_date - current_date).seconds
wait = (planned_date - current_date).total_seconds()
logger.info(f"Waiting {wait} seconds until next notification")
await asyncio.sleep(wait)
for telegram_id in settings.bot_settings.users:
Expand Down

0 comments on commit 3037357

Please sign in to comment.