Skip to content

Commit

Permalink
Refactor get_follow_up_text function call in process_incoming_message
Browse files Browse the repository at this point in the history
  • Loading branch information
lperezmo committed Jan 17, 2024
1 parent 0c0c656 commit 821b184
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion alternative_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,9 @@ def process_incoming_message(PIN, incoming_message, send_to, send_from):
if message.body.strip() == PIN:
sent_pin = True
if sent_pin:
follow_up_reply = get_follow_up_text(incoming_message)
follow_up_reply = get_follow_up_text(send_to=send_to,
send_from=send_from,
incoming_message=incoming_message)
return follow_up_reply
else:
return f"Please provide security PIN to continue. Hint: {PIN}"
Expand Down

0 comments on commit 821b184

Please sign in to comment.