Skip to content

Commit

Permalink
Simplification
Browse files Browse the repository at this point in the history
  • Loading branch information
Tschuppi81 committed Jul 5, 2024
1 parent 05d259d commit 99e412a
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/onegov/org/views/people.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,8 @@ def view_people(
selected_sub_org = str(request.params.get('sub_organisation', ''))

people = self.people_by_organisation(selected_org, selected_sub_org)

orgs = (PersonCollection(request.session)
.unique_organisations())
sub_orgs = (PersonCollection(request.session)
.unique_sub_organisations(selected_org))
orgs = self.unique_organisations()
sub_orgs = self.unique_sub_organisations()

class AtoZPeople(AtoZ[Person]):

Expand Down

0 comments on commit 99e412a

Please sign in to comment.