def create_shopping_list(name): """ It creates a shopping list with the ingredients for the recipes in the meal planner and returns it in a dictionary : {'aisle':[ingr1, ingr2,...],...} """ print name i_ingr = [] if 'User' in session: list_ingr = ShoppingList.getListIngrName(session['User']) dict_ingr = helpFunctions.makeShoppingListNoQty(list_ingr) return render_template("grocery_list.html", list=dict_ingr, name=name)