def send_confirmation_email(invitation):
    invited_user = invitation.email
    subject = invited_user % '%s accepted your invitation to CommCare HQ'
    recipient = WebUser.get_by_user_id(invitation.invited_by).get_email()
    context = {
        'invited_user': invited_user,
    }
    html_content = render_to_string('domain/email/invite_confirmation.html',
                                    context)
    text_content = render_to_string('domain/email/invite_confirmation.txt',
                                    context)
    send_html_email_async.delay(subject, recipient, html_content,
                                text_content=text_content)
dataset/ETHPy150Open dimagi/commcare-hq/corehq/apps/hqwebapp/utils.py/send_confirmation_email/swapped operands of `%`