Skip to content

Commit

Permalink
course2
Browse files Browse the repository at this point in the history
  • Loading branch information
Liza Shulika committed Nov 22, 2024
1 parent aa17965 commit bb298bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def days_to_weeks(days: int) -> int:
@classmethod
def from_dict(cls, course_dict: dict) -> "OnlineCourse":
week = cls.days_to_weeks(course_dict["days"])
return OnlineCourse(course_dict["name"],
return cls(course_dict["name"],
course_dict["description"],
week)

Expand Down

0 comments on commit bb298bf

Please sign in to comment.