Example #1
0
def notify_award_recipient(sender, award, **kwargs):
    """Notifies award recipient that he/she has an award!"""
    # -dev and -stage have STAGE = True which means they won't send
    # notification emails of newly awarded badges which would spam the
    # bejesus out of everyone.
    if not settings.STAGE:
        # Kick off the task to send the email
        send_award_notification.delay(award)
Example #2
0
def notify_award_recipient(sender, **kwargs):
    """Notifies award recipient that he/she has an award!"""
    award = kwargs['award']

    # Kick off the task to send the email
    send_award_notification.delay(award)