diff --git a/update_db.py b/update_db.py index 5638b51..e0817f3 100644 --- a/update_db.py +++ b/update_db.py @@ -9,4 +9,8 @@ items = db.session.scalars(query).all() # items=Item.query.filter_by(quantity='').all() for i in items: - print(f"{i.label} {i.quantity} {i.unit}") \ No newline at end of file + print(f"{i.label} {i.quantity} {i.unit}") + i.quantity = 1 + i.unit = 'x' + +db.session.commit() \ No newline at end of file