-
Notifications
You must be signed in to change notification settings - Fork 9
Shepherd/recipemanager #733
base: shepherd/master
Are you sure you want to change the base?
Conversation
…ianced cooked counter
…PieCentral into shepherd/recipemanager
shepherd/RecipeManager.py
Outdated
|
||
class RecipeManager(): | ||
|
||
master_recipes = [RECIPE_PROBABILITIES.EASY_RECIPE, RECIPE_PROBABILITIES.MEDIUM_RECIPE, \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't understand why this is a list of references to an empty list... it does give me a good idea of how to manage the recipes tho.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The idea is to make it easier for us to load and reload the list by having a list that we can read from without the programmer looking back and forth
It's to make our lives and future people lives easier
Also, this is not empty (or I believe it shouldn't be)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please see the comments for changes, and talk to me in work session cuz i have another change that I don't want to try to explain via github comment
shepherd/RecipeManager.py
Outdated
for item in ingredients: | ||
if item not in recipes: | ||
return False | ||
return True |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
put this line inside the else statement to appease the style checker :')
Completion of Recipe Manager
Changes to Utils.py and RecipeManager.py