small changes
This commit is contained in:
@@ -47,6 +47,8 @@ class Customer:
|
|||||||
|
|
||||||
if user.renew:
|
if user.renew:
|
||||||
user.refresh_passcode(presumed_property_idxs, self.cipher)
|
user.refresh_passcode(presumed_property_idxs, self.cipher)
|
||||||
|
|
||||||
|
user.user_keypad.partial_keypad_shuffle()
|
||||||
return True
|
return True
|
||||||
|
|
||||||
def renew_keys(self) -> bool:
|
def renew_keys(self) -> bool:
|
||||||
|
|||||||
@@ -97,7 +97,7 @@ class NKodeAPI:
|
|||||||
if username not in customer.users.keys():
|
if username not in customer.users.keys():
|
||||||
raise ValueError("Username not found")
|
raise ValueError("Username not found")
|
||||||
user = customer.users[username]
|
user = customer.users[username]
|
||||||
user.user_keypad.partial_keypad_shuffle()
|
# user.user_keypad.partial_keypad_shuffle()
|
||||||
# TODO: implement split_keypad_shuffle()
|
# TODO: implement split_keypad_shuffle()
|
||||||
return user.user_keypad.keypad
|
return user.user_keypad.keypad
|
||||||
|
|
||||||
|
|||||||
@@ -79,7 +79,6 @@ class UserKeypad:
|
|||||||
#self.keypad = matrix_to_list(matrix_transpose(keypad_by_sets))
|
#self.keypad = matrix_to_list(matrix_transpose(keypad_by_sets))
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
def property_adjacency_graph(self) -> dict[int, set[int]]:
|
def property_adjacency_graph(self) -> dict[int, set[int]]:
|
||||||
user_keypad_keypad = self.keypad_matrix()
|
user_keypad_keypad = self.keypad_matrix()
|
||||||
graph = {}
|
graph = {}
|
||||||
|
|||||||
Reference in New Issue
Block a user