From fd1f40cace6fdca3866a96310571f4da016918a7 Mon Sep 17 00:00:00 2001 From: Mr Ruben <37179353+Mr-Ruben@users.noreply.github.com> Date: Mon, 12 Oct 2020 11:42:11 +0200 Subject: [PATCH] Fixed typo on vegetable_items display and renamed variables for consistency --- Lesson_4/08 _Regal Tree Foods/starter_code/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lesson_4/08 _Regal Tree Foods/starter_code/views.py b/Lesson_4/08 _Regal Tree Foods/starter_code/views.py index 7e1f358..fc8745d 100644 --- a/Lesson_4/08 _Regal Tree Foods/starter_code/views.py +++ b/Lesson_4/08 _Regal Tree Foods/starter_code/views.py @@ -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])