Skip to content

Commit

Permalink
bugfix: it's late and i'm tired
Browse files Browse the repository at this point in the history
  • Loading branch information
gregv committed Aug 11, 2024
1 parent 194aeac commit 4411c9e
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions api/messages/messages_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -590,10 +590,10 @@ def save_npo_application(json):
recaptcha_response_json = recaptcha_response.json()
logger.info(f"Recaptcha Response: {recaptcha_response_json}")

if recaptcha_response_json["success"] == False:
return Message(
"Recaptcha failed"
)
# if recaptcha_response_json["success"] == False:
# return Message(
# "Recaptcha failed"
# )


'''
Expand Down Expand Up @@ -627,7 +627,7 @@ def save_npo_application(json):

logger.info(f"Sending welcome email to {name} {email}")

send_nonprofit_welcome_email(name, email)
send_nonprofit_welcome_email(organization, name, email)

logger.info(f"Sending slack message to nonprofit-form-submissions")

Expand All @@ -640,12 +640,10 @@ def save_npo_application(json):
Idea: `{idea}`
Is Nonprofit: `{isNonProfit}`
'''
send_slack(channel="nonprofit-form-submissions", message=slack_message, icon=":rocket:")
send_slack(channel="nonprofit-form-submissions", message=slack_message, icon_emoji=":rocket:")

logger.info(f"Sent slack message to nonprofit-form-submissions")



return Message(
"Saved NPO Application"
)
Expand Down Expand Up @@ -1035,7 +1033,7 @@ def send_nonprofit_welcome_email(organization_name, contact_name, email):
<li><a href="{add_utm('https://www.ohack.dev/hack', content=image_utm_content)}">Upcoming Hackathons and Events</a></li>
</ul>
<p>Questions or need assistance? Reach out on our <a href="{add_utm('https://ohack.dev/signup', content=image_utm_content)}">Slack channel</a> or email us at support@ohack.dev.</p>
<p>Questions or need assistance? Reach out on our <a href="{add_utm('https://ohack.dev/signup', content=image_utm_content)}">Slack channel</a> or email us at support@ohack.org.</p>
<p>We're excited to work with you to create tech solutions that amplify your impact!</p>
Expand Down

0 comments on commit 4411c9e

Please sign in to comment.