perf: 优化设置项名称

This commit is contained in:
ibuler
2023-09-12 19:57:03 +08:00
committed by 老广
parent 5fa1ae9ee5
commit 1249935bab
5 changed files with 8 additions and 9 deletions

View File

@@ -41,7 +41,6 @@ class PermAccountUtil(AssetPermissionUtil):
alias_date_expired_mapper[alias].append(perm.date_expired)
asset_accounts = asset.accounts.all().active()
# username_accounts_mapper = {account.username: account for account in asset_accounts}
username_accounts_mapper = defaultdict(list)
for account in asset_accounts:
username_accounts_mapper[account.username].append(account)