def is_allowed_to_send_email_to(email):
  if settings.EMAIL_LIMIT_DOMAIN:
    limit_email = re.compile((settings.EMAIL_LIMIT_DOMAIN) % r'.+@%s$')
    return limit_email.match(email)

  if settings.EMAIL_TEST_ONLY and email not in settings.EMAIL_TEST_ADDRESSES:
    return False
  return True
dataset/ETHPy150Open CollabQ/CollabQ/common/mail.py/is_allowed_to_send_email_to/swapped operands of `%`