perf: automation .account -> .all_accounts

This commit is contained in:
feng
2025-04-14 14:16:28 +08:00
committed by ZhaoJiSen
parent 3b2ac101c8
commit 2ca0e9a5a2
3 changed files with 3 additions and 3 deletions

View File

@@ -237,7 +237,7 @@ class JMSInventory:
return accounts_sorted
def get_asset_sorted_accounts(self, asset):
accounts = list(asset.accounts.filter(is_active=True))
accounts = list(asset.all_accounts.filter(is_active=True))
accounts_sorted = self.sorted_accounts(accounts)
return accounts_sorted