from classUser import *
import sendEmail
import time

class shoppinglist():

    def __init__(self, chosen_recipe, userID):
        self.chosen_recipe = chosen_recipe
        self.favrecipe = ""
        self.userID = userID
        self.type = "shoppinglist"
        self.setShoppingList()

    def getShoppingListAsString(self):
        return str(self.shoppingList)

    def setShoppingList(self):

        self.favrecipe = getRecipeList(self.userID)
        self.shoppingList = self.favrecipe[self.chosen_recipe]["INGREDIENTS"].replace("', ", "\n").replace("'", "").replace("[", "").replace("]", "").split("\n")


    def sendEmail(self, email):
        sendEmail.sendEmail(self.type, email, self.shoppingList)
        print("We sent you an email to " + str(email) +
              " with the shopping list!")
        time.sleep(2)

if __name__ == "__main__":
    pass
a779ef1c224b60c8f1d6512ea05611585d5471ad
<mask token>


class shoppinglist:

    def __init__(self, chosen_recipe, userID):
        self.chosen_recipe = chosen_recipe
        self.favrecipe = ''
        self.userID = userID
        self.type = 'shoppinglist'
        self.setShoppingList()

    def getShoppingListAsString(self):
        return str(self.shoppingList)
    <mask token>

    def sendEmail(self, email):
        sendEmail.sendEmail(self.type, email, self.shoppingList)
        print('We sent you an email to ' + str(email) +
            ' with the shopping list!')
        time.sleep(2)


<mask token>

<mask token>


class shoppinglist:

    def __init__(self, chosen_recipe, userID):
        self.chosen_recipe = chosen_recipe
        self.favrecipe = ''
        self.userID = userID
        self.type = 'shoppinglist'
        self.setShoppingList()

    def getShoppingListAsString(self):
        return str(self.shoppingList)

    def setShoppingList(self):
        self.favrecipe = getRecipeList(self.userID)
        self.shoppingList = self.favrecipe[self.chosen_recipe]['INGREDIENTS'
            ].replace("', ", '\n').replace("'", '').replace('[', '').replace(
            ']', '').split('\n')

    def sendEmail(self, email):
        sendEmail.sendEmail(self.type, email, self.shoppingList)
        print('We sent you an email to ' + str(email) +
            ' with the shopping list!')
        time.sleep(2)


<mask token>

<mask token>


class shoppinglist:

    def __init__(self, chosen_recipe, userID):
        self.chosen_recipe = chosen_recipe
        self.favrecipe = ''
        self.userID = userID
        self.type = 'shoppinglist'
        self.setShoppingList()

    def getShoppingListAsString(self):
        return str(self.shoppingList)

    def setShoppingList(self):
        self.favrecipe = getRecipeList(self.userID)
        self.shoppingList = self.favrecipe[self.chosen_recipe]['INGREDIENTS'
            ].replace("', ", '\n').replace("'", '').replace('[', '').replace(
            ']', '').split('\n')

    def sendEmail(self, email):
        sendEmail.sendEmail(self.type, email, self.shoppingList)
        print('We sent you an email to ' + str(email) +
            ' with the shopping list!')
        time.sleep(2)


if __name__ == '__main__':
    pass

from classUser import *
import sendEmail
import time


class shoppinglist:

    def __init__(self, chosen_recipe, userID):
        self.chosen_recipe = chosen_recipe
        self.favrecipe = ''
        self.userID = userID
        self.type = 'shoppinglist'
        self.setShoppingList()

    def getShoppingListAsString(self):
        return str(self.shoppingList)

    def setShoppingList(self):
        self.favrecipe = getRecipeList(self.userID)
        self.shoppingList = self.favrecipe[self.chosen_recipe]['INGREDIENTS'
            ].replace("', ", '\n').replace("'", '').replace('[', '').replace(
            ']', '').split('\n')

    def sendEmail(self, email):
        sendEmail.sendEmail(self.type, email, self.shoppingList)
        print('We sent you an email to ' + str(email) +
            ' with the shopping list!')
        time.sleep(2)


if __name__ == '__main__':
    pass

from classUser import *
import sendEmail
import time

class shoppinglist():

    def __init__(self, chosen_recipe, userID):
        self.chosen_recipe = chosen_recipe
        self.favrecipe = ""
        self.userID = userID
        self.type = "shoppinglist"
        self.setShoppingList()

    def getShoppingListAsString(self):
        return str(self.shoppingList)

    def setShoppingList(self):

        self.favrecipe = getRecipeList(self.userID)
        self.shoppingList = self.favrecipe[self.chosen_recipe]["INGREDIENTS"].replace("', ", "\n").replace("'", "").replace("[", "").replace("]", "").split("\n")


    def sendEmail(self, email):
        sendEmail.sendEmail(self.type, email, self.shoppingList)
        print("We sent you an email to " + str(email) +
              " with the shopping list!")
        time.sleep(2)

if __name__ == "__main__":
    pass