Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -360,7 +360,7 @@ def schedule_appointment(therapist, time_slot, date, user_email, appointment_not
|
|
360 |
therapist_email = therapists[therapist]["email"]
|
361 |
success, error_msg = send_emails(therapist, time_slot, date, user_email, therapist_email, appointment_note, state["chat_history"], state)
|
362 |
if success:
|
363 |
-
return f"Appointment booked with {therapist} on {date} at {time_slot}.
|
364 |
else:
|
365 |
return (f"Appointment booked with {therapist} on {date} at {time_slot}. "
|
366 |
f"Emails from {GMAIL_ADDRESS} could not be sent. "
|
|
|
360 |
therapist_email = therapists[therapist]["email"]
|
361 |
success, error_msg = send_emails(therapist, time_slot, date, user_email, therapist_email, appointment_note, state["chat_history"], state)
|
362 |
if success:
|
363 |
+
return f"Appointment booked with {therapist} on {date} at {time_slot}.", state
|
364 |
else:
|
365 |
return (f"Appointment booked with {therapist} on {date} at {time_slot}. "
|
366 |
f"Emails from {GMAIL_ADDRESS} could not be sent. "
|