'SQLAlchemy Multiple Where Condition [duplicate]
I have an Orders table. And I want to write a query to this table with more than one condition. For example, I want to get an order with id field 1 and order_status field 3.
Is there a way to do this with SQL Alchemy?
P.S. I am able to check only one condition with the following query.
order = Orders.query.filter_by(restaurant_id = restaurant_id).all()
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
