small changes
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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 = {}
|
||||
|
||||
Reference in New Issue
Block a user