@classmethod
    def get_unconfirmed_users(cls, before_date=None):
        q = cls.query.filter(cls.email is None)
        if before_date:
            q = q.filter(cls.registration_date < before_date)
        return q
dataset/ETHPy150Open Net-ng/kansha/kansha/user/models.py/DataUser.get_unconfirmed_users/original