

@classmethod
def by_foreign_id(cls, foreign_id):
    if (foreign_id is None):
        return
    return cls.all().filter_by(foreign_id=foreign_id).first()

dataset/ETHPy150Open pudo/aleph/aleph/model/source.py Source.by_foreign_id/original