@classmethod
    def find(cls, author_id, current_user=None):
        if author_id == 'me':
            if current_user is None:
                return []
            email = current_user.email
        elif author_id in '@':
            email = author_id
        else:
            email = None

        if email:
            username, domain = email.split('@', 1)
            email_query = '{}+%@{}'.format(username, domain)

            return list(cls.query.filter(
                or_(
                    cls.email.like(email_query),
                    cls.email == email,
                )
            ))

        try:
            author_id = UUID(author_id)
        except ValueError:
            return []

        author = cls.query.get(author_id)
        if author is None:
            return []
        return [author]
dataset/ETHPy150Open dropbox/changes/changes/models/author.py/Author.find/swapped operands of `in`