From 2c862f2366edd1d1c596771c26eed4293950ff9d Mon Sep 17 00:00:00 2001 From: Lukas Barragan Torres Date: Mon, 26 Feb 2024 20:51:04 +0100 Subject: [PATCH] ruff check: ununsed function parameter --- backend/db/implementation/SqlVakDAO.py | 2 +- backend/db/interface/SubjectDAO.py | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/backend/db/implementation/SqlVakDAO.py b/backend/db/implementation/SqlVakDAO.py index f806f9b1..b841634c 100644 --- a/backend/db/implementation/SqlVakDAO.py +++ b/backend/db/implementation/SqlVakDAO.py @@ -6,7 +6,7 @@ class SqlSubjectDAO(SubjectDAO): - def create_subject(self, subject: SubjectDataclass, teacher_id: int) -> None: + def create_subject(self, subject: SubjectDataclass) -> None: new_subject = Subject(name=subject.name) diff --git a/backend/db/interface/SubjectDAO.py b/backend/db/interface/SubjectDAO.py index 5f1174ea..bde7c4a7 100644 --- a/backend/db/interface/SubjectDAO.py +++ b/backend/db/interface/SubjectDAO.py @@ -5,7 +5,7 @@ class SubjectDAO(ABC): @abstractmethod - def create_subject(self, subject: SubjectDataclass, teacher_id: int) -> None: + def create_subject(self, subject: SubjectDataclass) -> None: """ Creƫert een nieuw SubjectDataclass in de database en associeert het met een TeacherDataclass. @@ -16,11 +16,11 @@ def create_subject(self, subject: SubjectDataclass, teacher_id: int) -> None: raise NotImplementedError @abstractmethod - def get_subject(self, teacher_id: int) -> SubjectDataclass: + def get_subject(self, subject_id: int) -> SubjectDataclass: """ Haalt een SubjectDataclass op aan de hand van zijn identificatie. - :param teacher_id: De identificatie van het op te halen SubjectDataclass. + :param subject_id: De identificatie van het op te halen SubjectDataclass. :raises ItemNotFoundException: Als er geen SubjectDataclass met de opgegeven `ident` in de database bestaat. :returns: De domeinmodel-instantie van het opgehaalde SubjectDataclass. """