modifies update query -1-

This commit is contained in:
2026-01-03 16:36:43 +01:00
parent b477c600f4
commit a93314eff4
+1 -1
View File
@@ -4,7 +4,7 @@ from models import db, Item
app = create_app()
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=Item.query.filter_by(quantity='').all()