Skip to content
This repository has been archived by the owner on Jul 6, 2020. It is now read-only.

Shepherd/recipemanager #733

Open
wants to merge 21 commits into
base: shepherd/master
Choose a base branch
from
Open

Conversation

ochan1
Copy link

@ochan1 ochan1 commented Feb 13, 2020

Completion of Recipe Manager

Changes to Utils.py and RecipeManager.py

shepherd/Utils.py Outdated Show resolved Hide resolved
shepherd/Utils.py Outdated Show resolved Hide resolved
shepherd/Utils.py Outdated Show resolved Hide resolved

class RecipeManager():

master_recipes = [RECIPE_PROBABILITIES.EASY_RECIPE, RECIPE_PROBABILITIES.MEDIUM_RECIPE, \
Copy link
Contributor

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.

Copy link
Author

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)

Copy link
Contributor

@FIREdog5 FIREdog5 left a 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 Show resolved Hide resolved
for item in ingredients:
if item not in recipes:
return False
return True
Copy link
Member

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 :')

@ochan1 ochan1 requested a review from benliao1 as a code owner June 13, 2020 21:38
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants