Skip to content

Commit

Permalink
Update main.py
Browse files Browse the repository at this point in the history
  • Loading branch information
mikesanin authored Oct 22, 2023
1 parent 31f6a05 commit 6720269
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ def days_to_weeks(days: int) -> int:
return (days + 6) // 7

@classmethod
def from_dict(cls: "OnlineCourse", course_dict: Dict[str, str]) -> "OnlineCourse":
def from_dict(cls: "OnlineCourse", course_dict: Dict[str, str])
-> "OnlineCourse":
name = course_dict["name"]
description = course_dict["description"]
days = course_dict["days"]
Expand Down

0 comments on commit 6720269

Please sign in to comment.