Remove ununsed variable `user_id_table` in `monkey_island/cc/resources/auth/user_store.py`

This commit is contained in:
Shreya 2021-05-04 16:38:07 +05:30
parent a5481c15f8
commit eeaafc9a3b
1 changed files with 0 additions and 2 deletions

View File

@ -6,10 +6,8 @@ from monkey_island.cc.resources.auth.auth_user import User
class UserStore: class UserStore:
users = [] users = []
username_table = {} username_table = {}
user_id_table = {}
@staticmethod @staticmethod
def set_users(users: List[User]): def set_users(users: List[User]):
UserStore.users = users UserStore.users = users
UserStore.username_table = {u.username: u for u in UserStore.users} UserStore.username_table = {u.username: u for u in UserStore.users}
UserStore.user_id_table = {u.id: u for u in UserStore.users}