Feat: add orm for Tribes

This commit is contained in:
2022-12-20 10:25:12 +01:00
parent 77b26f1180
commit 723092c38f
4 changed files with 56 additions and 0 deletions

View File

@@ -20,3 +20,8 @@ class Tribe:
def register_student(self, student: Student) -> None:
self.students.append(student)
def __eq__(self, other: object) -> bool:
if isinstance(other, Tribe):
return self.name == other.name and self.level == other.level
return False