diff --git a/handler/car.py b/handler/car.py index 1f35374..60f1374 100644 --- a/handler/car.py +++ b/handler/car.py @@ -22,8 +22,8 @@ def get_list(db: Session = Depends(database), query = db.query(JiaKaoBaoDian) if len(keyword) > 0: query = query.filter( - JiaKaoBaoDian.question.like("%%%s%%" % keyword), - JiaKaoBaoDian.illiteracy_explain.like("%%%s%%" % keyword),) + JiaKaoBaoDian.question.like("%%%s%%" % keyword) | + JiaKaoBaoDian.illiteracy_explain.like("%%%s%%" % keyword)) if order_by_wrong_rate: query = query.order_by(JiaKaoBaoDian.wrong_rate.desc())