Feat: add orm for Tribes
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user