Update app.py
Browse files
app.py
CHANGED
@@ -551,7 +551,7 @@ def payment_state(state: VisitorState):
|
|
551 |
else:
|
552 |
return {"messages": ["Payment failed due to an error. Please try again later."], "next": END}
|
553 |
|
554 |
-
def final_state(state: VisitorState)
|
555 |
"""FinalState: Send email confirmation and finalize the appointment."""
|
556 |
if state.payment_confirmed:
|
557 |
appointment_details = f"Doctor: {state.doctor_name}\nTime: {state.selected_slot}"
|
|
|
551 |
else:
|
552 |
return {"messages": ["Payment failed due to an error. Please try again later."], "next": END}
|
553 |
|
554 |
+
def final_state(state: VisitorState):
|
555 |
"""FinalState: Send email confirmation and finalize the appointment."""
|
556 |
if state.payment_confirmed:
|
557 |
appointment_details = f"Doctor: {state.doctor_name}\nTime: {state.selected_slot}"
|