Compare commits

...

2 commits

Author SHA1 Message Date
e8c5ac9939 Merge pull request 'Call the write next datetime function when sending to the channel' (#17) from fix-schedule-send-button into main
All checks were successful
Test, Build and Publish / test (push) Successful in 33s
Test, Build and Publish / build-and-push-images (push) Successful in 1m16s
Reviewed-on: #17
2024-09-22 14:40:35 +01:00
e3d96faaa7 Call the write next datetime function when sending to the channel
All checks were successful
Test, Build and Publish / test (pull_request) Successful in 34s
Test, Build and Publish / build-and-push-images (pull_request) Successful in 1m10s
2024-09-22 14:38:09 +01:00

View file

@ -308,7 +308,7 @@ class ScheduleButton(discord.ui.Button):
if tasks:
for (day, hour, min, cadence, cadence_start) in tasks:
next_run = util.get_next_datetime(day, hour, datetime.now(), cadence, cadence_start)
next_run = util.get_next_datetime_with_cadence(day, hour, datetime.now(), cadence, cadence_start)
msg += strings.scheduled(next_run, min)
await interaction.channel.send(msg)