Skip to content

Commit

Permalink
fixup! refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
agmes4 committed Dec 27, 2024
1 parent 79222a2 commit d219f2f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sipa/model/pycroft/user.py
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ def membership_end_date(self) -> ActiveProperty[date | None, date | None]:

@property
def mpsk_clients(self) -> ActiveProperty[str | None, str | None]:
return ActiveProperty(name="mpsk_clients", value=self.config["mpsk_clients"], capabilities=Capabilities(edit=True, delete=False, displayable=False),)
return ActiveProperty(name="mpsk_clients", value=self.user_data.mpsk_clients, capabilities=Capabilities(edit=True, delete=False, displayable=False),)

Check warning on line 328 in sipa/model/pycroft/user.py

View check run for this annotation

Codecov / codecov/patch

sipa/model/pycroft/user.py#L328

Added line #L328 was not covered by tests

def change_mpsk_clients(self, mac, name, mpsk_id, password: str):
status, _ = api.change_mpsk(self.user_data.id, mac, name, mpsk_id, password)

Check warning on line 331 in sipa/model/pycroft/user.py

View check run for this annotation

Codecov / codecov/patch

sipa/model/pycroft/user.py#L331

Added line #L331 was not covered by tests
Expand Down

0 comments on commit d219f2f

Please sign in to comment.