Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Lesson_4/08 _Regal Tree Foods/starter_code/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ def showCategoriedProducts(category):
return jsonify(legume_products = [l.serialize for l in legume_items])
if category == 'vegetable':
vegetable_items = session.query(Product).filter_by(category = 'vegetable').all()
return jsonify(produce_products = [p.serialize for p in produce_items])
return jsonify(vegetable_products = [v.serialize for v in vegetable_items])



Expand Down