Day 29

by thengrad on Fri 05 July 2013 // Posted in legacy // under

I figured out what huge source of the errors I was getting thrown at me when I added the strawberry's were from. They way the recipes were being displayed hinged on every ingredient appearing in every recipe. I found this to be a bit of an problem for allowing Lemonade Stand to be flexible. So I created a feature branch where I changed it so that if it doesn't find an ingredient in the recipe dictionary it will just add it with an amount 0. This way there can be a bunch of ingredients and recipes with out having to go through and make sure that every ingredient is a least listed under every recipe in the constants.py