flask-sqlalchemy同字段多条件过滤

举例

from sqlalchemy import or_,and_
#
from operator import or_, and_


allapp = AppServer.query.filter(and_(
    AppServer.software!='zookeeper',
    AppServer.software!='keepalived',
    AppServer.software!='openresty',
)).with_entities(AppServer.software).distinct().all()
原文地址:https://www.cnblogs.com/cherylgi/p/13447810.html