From 439b706fbd52f55287ba5d835c5f87cd7088f6e4 Mon Sep 17 00:00:00 2001 From: Donovan Date: Fri, 14 Mar 2025 11:05:02 -0500 Subject: [PATCH] small changes --- src/customer.py | 2 ++ src/nkode_api.py | 2 +- src/user_keypad.py | 1 - 3 files changed, 3 insertions(+), 2 deletions(-) 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 = {}