def __init__(self, accounts=None, debug=False):
        self.datastore = datastore.Datastore()
        self.accounts = accounts
        self.debug = debug
        self.items = []
        self.team_emails = app.config.get('SECURITY_TEAM_EMAIL', [])
        self.emails = []

        if type(self.team_emails) in (str, unicode):
            self.emails.append(self.team_emails)
        elif (list, tuple) in type(self.team_emails):
            self.emails.extend(self.team_emails)
        else:
            app.logger.info("Auditor: SECURITY_TEAM_EMAIL contains an invalid type")

        for account in self.accounts:
            users = User.query.filter(User.daily_audit_email==True).filter(User.accounts.any(name=account)).all()
            self.emails.extend([user.email for user in users])
dataset/ETHPy150Open Netflix/security_monkey/security_monkey/auditor.py/Auditor.__init__/swapped operands of `in`