mirror of
https://github.com/StefBuwalda/cal_counter.git
synced 2025-10-30 11:19:59 +00:00
Update routes.py
Fixed a bug where redirect was incorrect after adding an item
This commit is contained in:
@@ -117,6 +117,7 @@ def step3_alt1_post(input: str):
|
|||||||
)
|
)
|
||||||
db.session.commit()
|
db.session.commit()
|
||||||
print("[DEBUG] New FoodItem Added")
|
print("[DEBUG] New FoodItem Added")
|
||||||
|
input = barcode if barcode else name # update input
|
||||||
else:
|
else:
|
||||||
print(f"Item exists: {item.barcode} {item.name}")
|
print(f"Item exists: {item.barcode} {item.name}")
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user