Skip to content
This repository was archived by the owner on May 13, 2025. It is now read-only.

Final touches on Custom Message #237

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions reminders/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,10 @@ def send_sms_reminder(appointment_id):
return

appointment_time = arrow.get(appointment.time, appointment.time_zone.zone)
body = 'Hi {0}. You have an appointment coming up at {1}.'.format(
body = 'Hi {0}. You have an appointment coming up at {1}. {2}'.format(
appointment.name,
appointment_time.format('h:mm a')
appointment_time.format('h:mm a'),
appointment.custom_message,
)

client.messages.create(
Expand Down