add option to add books manually, fix multiple user selection bug

This commit is contained in:
2025-01-30 10:42:52 +01:00
parent 5501cbf97c
commit 7171d2a4da
10 changed files with 169 additions and 100 deletions

View File

@@ -11,3 +11,13 @@ class User:
def __repr__(self):
return f"Name: {self.username}\nMatrikelnr.: {self.userid}\neMail: {self.email}"
def match(self, testuser: "User"):
name = testuser.username
user_id = testuser.userid
email = testuser.email
if name == self.username and email == self.email and user_id == self.userid:
return True
else:
return False