Skip to content

Commit

Permalink
Modified Recipe model class so that recipe_id isnt passed in as a par…
Browse files Browse the repository at this point in the history
…ameter during instantiation
  • Loading branch information
coder-tim committed Oct 28, 2020
1 parent 6116cab commit 95b7af2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions server/app/model_schemas/recipe.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,8 @@ class Recipe(db.Model):
)

def __init__(
self, recipe_id, recipe_name, cuisine, instructions,
self, recipe_name, cuisine, instructions,
time_to_cook_in_minutes, servings, calories, protein, carbs, fat):
self.recipe_id = recipe_id
self.recipe_name = recipe_name
self.cuisine = cuisine
self. instructions = instructions
Expand Down

0 comments on commit 95b7af2

Please sign in to comment.