Skip to content
Snippets Groups Projects
Commit 9939d35d authored by Arno Wunderlich's avatar Arno Wunderlich
Browse files

deleted debugging prints

parent acbaab77
No related branches found
No related tags found
1 merge request!10Add item backend
Pipeline #13928 passed
......@@ -59,11 +59,9 @@ def add_item():
"""
if request.method == 'POST':
nItem = request.form.get('nItem')
print('nItem: ', nItem)
description = request.form.get('description')
starting_price = int(request.form.get('sPrice'))
error = None
print("here: 66")
if not nItem:
error = 'Item name is required.'
if not starting_price or starting_price < 1:
......@@ -87,13 +85,11 @@ def add_item():
)
item.save()
print("item saved")
except Exception as exc:
error = f"Error creating item: {exc!s}"
else:
return redirect(url_for('views.adding_successful'))
print(error)
flash(error)
item = render_template("addItem.html")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment