Skip to content
This repository has been archived by the owner on Sep 27, 2024. It is now read-only.

Commit

Permalink
ruff check: ununsed function parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
lbarraga committed Feb 26, 2024
1 parent 83e823f commit 2c862f2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion backend/db/implementation/SqlVakDAO.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
6 changes: 3 additions & 3 deletions backend/db/interface/SubjectDAO.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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.
"""
Expand Down

0 comments on commit 2c862f2

Please sign in to comment.