Skip to content
This repository has been archived by the owner on May 16, 2020. It is now read-only.

Fixed subject line of participant status email #214

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

kracekumar
Copy link
Contributor

Fixes #213 .

@@ -172,7 +172,7 @@ def event_update_participant_status(profile, event):
message = message.replace("*|FULLNAME|*", participant.user.fullname)
if message and g.user.email:
send_email(sender=(g.user.fullname, g.user.email), to=participant.email,
subject="%s - Hacknight participation status" % event.title , body=text_message, html=message)
subject="%s participation is %s" %(event.title, participant_status.get(participant.status)), body=text_message, html=message)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't do this. Put the full sentence in the dict. This sort of string formatting will make i18n massively painful if and when we introduce t.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Email subject line should notify status of the participant
2 participants