Skip to content

Commit

Permalink
updated pet model from_dict
Browse files Browse the repository at this point in the history
  • Loading branch information
apradoada committed Dec 9, 2024
1 parent d571fb9 commit 3181020
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/models/pet.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ def to_dict(self):
@classmethod
def from_dict(cls, data_dict):
new_pet = cls(
name = data_dict["name"],
animal_type = data_dict["animal"],
personality = data_dict["personality"],
color = data_dict["coloration"]
Expand Down

0 comments on commit 3181020

Please sign in to comment.