perf: 收集mysql账号username 优化 (#10470)

Co-authored-by: feng <1304903146@qq.com>
pull/10472/head
fit2bot 2023-05-16 18:15:42 +08:00 committed by GitHub
parent 449e7ce454
commit 4ce2d991dd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -13,8 +13,8 @@ class GatherAccountsFilter:
def mysql_filter(info):
result = {}
for _, user_dict in info.items():
for username, data in user_dict.items():
if data.get('account_locked') == 'N':
for username, _ in user_dict.items():
if len(username.split('.')) == 1:
result[username] = {}
return result