def add(user_id, form): """Add a UserAllergy""" user_allergy_obj = UserAllergy() user_allergy_obj.user_id = user_id user_allergy_obj.allergy_id = form['allergy_id'] return crud.add(user_allergy_obj)
def add(recipe_obj): """ Add a recipe object """ crud.add(recipe_obj)
def add(url): """Add a RecipeURL""" recipe_url_obj = RecipeURL(url=url) return crud.add(recipe_url_obj)
def add(ingredient_obj): """ Add a Ingredient Object to the database """ crud.add(ingredient_obj)
def delete(ingredient_obj): """ delete a Ingredient Object to the database """ crud.add(ingredient_obj)
def add(measurement_obj): """ Add a Measurement Object to the database """ crud.add(measurement_obj)
def add(recipe_step_obj): """ Add a Recipe Step Object to the database """ crud.add(recipe_step_obj)
def add(quantity_obj): """ Add a Quantity Object to the database """ crud.add(quantity_obj)
def add(user_obj): """Add a User""" user_obj.set_password() return crud.add(user_obj)