diff --git a/src/customer.py b/src/customer.py index b173c36..1a8a7e8 100644 --- a/src/customer.py +++ b/src/customer.py @@ -47,6 +47,8 @@ class Customer: if user.renew: user.refresh_passcode(presumed_property_idxs, self.cipher) + + user.user_keypad.partial_keypad_shuffle() return True def renew_keys(self) -> bool: diff --git a/src/nkode_api.py b/src/nkode_api.py index 15fd941..318b580 100644 --- a/src/nkode_api.py +++ b/src/nkode_api.py @@ -97,7 +97,7 @@ class NKodeAPI: if username not in customer.users.keys(): raise ValueError("Username not found") user = customer.users[username] - user.user_keypad.partial_keypad_shuffle() + # user.user_keypad.partial_keypad_shuffle() # TODO: implement split_keypad_shuffle() return user.user_keypad.keypad diff --git a/src/user_keypad.py b/src/user_keypad.py index a082ebb..b192473 100644 --- a/src/user_keypad.py +++ b/src/user_keypad.py @@ -79,7 +79,6 @@ class UserKeypad: #self.keypad = matrix_to_list(matrix_transpose(keypad_by_sets)) pass - def property_adjacency_graph(self) -> dict[int, set[int]]: user_keypad_keypad = self.keypad_matrix() graph = {}