def send_security_message(user, label, mail):
    if user.security_messages in label:
        return
    # Pass mailer so that celery is not used
    # Email synchronously so that user is only saved after email has been sent
    mails.send_mail(
        user.username,
        mail,
        from_addr=FROM_ADDR,
        mailer=send_email,
        user=user,
        username=settings.MANDRILL_USERNAME,
        password=settings.MANDRILL_PASSWORD,
        mail_server=settings.MANDRILL_MAIL_SERVER,
    )
    user.security_messages[label] = datetime.datetime.utcnow()
    user.save()
dataset/ETHPy150Open CenterForOpenScience/osf.io/scripts/admin_permission_email.py/send_security_message/swapped operands of `in`