sqlalchemy filter or
snippet in assembly

sqlalchemy filter or

user8824

from sqlalchemy import or_
filter(or_(User.name == 'ed', User.name == 'wendy'))

sqlalchemy filter by relationship

user3500

patients = Patient.query.filter(Patient.mother.has(phenoscore=10))