mirror of
https://github.com/StefBuwalda/cal_counter.git
synced 2025-10-30 03:10:00 +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()
|
||||
print("[DEBUG] New FoodItem Added")
|
||||
input = barcode if barcode else name # update input
|
||||
else:
|
||||
print(f"Item exists: {item.barcode} {item.name}")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user