Skip to content

Commit

Permalink
Minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Tschuppi81 committed Jul 5, 2024
1 parent 9bd5db5 commit 05d259d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/onegov/org/views/people.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def view_people(
orgs = (PersonCollection(request.session)
.unique_organisations())
sub_orgs = (PersonCollection(request.session)
.unique_sub_organisations(str(selected_org)))
.unique_sub_organisations(selected_org))

class AtoZPeople(AtoZ[Person]):

Expand Down
9 changes: 4 additions & 5 deletions src/onegov/people/collections/people.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
from typing import Any
from typing import TypeVar
from typing import TYPE_CHECKING

if TYPE_CHECKING:
from uuid import UUID

Expand All @@ -19,10 +18,10 @@ def model_class(self) -> type[PersonT]:
raise NotImplementedError()

def add( # type:ignore[override]
self,
first_name: str,
last_name: str,
**optional: Any
self,
first_name: str,
last_name: str,
**optional: Any
) -> PersonT:
person = self.model_class(
first_name=first_name,
Expand Down

0 comments on commit 05d259d

Please sign in to comment.