modifies update query -1-
This commit is contained in:
+1
-1
@@ -4,7 +4,7 @@ from models import db, Item
|
|||||||
|
|
||||||
app = create_app()
|
app = create_app()
|
||||||
app.app_context().push()
|
app.app_context().push()
|
||||||
query = sa.select(Item) #.where(Item.quantity == 0)
|
query = sa.select(Item).where(Item.quantity == 0)
|
||||||
items = db.session.scalars(query).all()
|
items = db.session.scalars(query).all()
|
||||||
|
|
||||||
# items=Item.query.filter_by(quantity='').all()
|
# items=Item.query.filter_by(quantity='').all()
|
||||||
|
|||||||
Reference in New Issue
Block a user