Skip to content

Commit

Permalink
The grade is also optional
Browse files Browse the repository at this point in the history
  • Loading branch information
BelKed committed Jul 12, 2024
1 parent f8d2bb3 commit 519487b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions edupage_api/classes.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class Class:
short: str
homeroom_teachers: Optional[list[EduTeacher]]
homeroom: Optional[Classroom]
grade: int
grade: Optional[int]


class Classes(Module):
Expand Down Expand Up @@ -54,7 +54,7 @@ def get_classes(self) -> Optional[list]:
class_info["short"],
home_teachers if home_teachers else None,
homeroom,
int(class_info["grade"]),
int(class_info["grade"]) if class_info["grade"] else None,
)
)

Expand Down

0 comments on commit 519487b

Please sign in to comment.