Skip to content

Commit

Permalink
refactoring function
Browse files Browse the repository at this point in the history
refactoring for better readability change mpsk clients function
  • Loading branch information
agmes4 committed Dec 26, 2024
1 parent aeae120 commit d46fe2e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sipa/model/sample/user.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ def mpsk_clients(self, value):
self.config["mpsk_clients"] = value

Check warning on line 171 in sipa/model/sample/user.py

View check run for this annotation

Codecov / codecov/patch

sipa/model/sample/user.py#L171

Added line #L171 was not covered by tests

def change_mpsk_clients(self, mac, name, mpsk_id, password: str):
if mpsk_id < len(self.config["mpsk_clients"]):
if mpsk_id in range(len(self.config["mpsk_clients"])):
self.config["mpsk_clients"][mpsk_id].name = name
self.config["mpsk_clients"][mpsk_id].mac = mac

Check warning on line 176 in sipa/model/sample/user.py

View check run for this annotation

Codecov / codecov/patch

sipa/model/sample/user.py#L174-L176

Added lines #L174 - L176 were not covered by tests
else:
Expand Down

0 comments on commit d46fe2e

Please sign in to comment.