mirror of
https://github.com/StefBuwalda/cal_counter.git
synced 2025-10-30 03:10:00 +00:00
Update routes.py
This commit is contained in:
@@ -102,7 +102,7 @@ def step3_alt1(input: str):
|
||||
)
|
||||
db.session.commit()
|
||||
print("[DEBUG] New item added")
|
||||
return redirect(url_for("add_meal.step3", barcode=form.barcode.data))
|
||||
return redirect(url_for("add_meal.step3", input=form.barcode.data))
|
||||
print("[DEBUG] Invalid form")
|
||||
if input.isdigit():
|
||||
form.barcode.data = input
|
||||
|
||||
Reference in New Issue
Block a user