perf: push account secret

This commit is contained in:
feng
2025-03-17 18:43:46 +08:00
committed by feng626
parent c70d7f709f
commit f4fa153ffa
3 changed files with 16 additions and 13 deletions

View File

@@ -21,7 +21,10 @@ class PushAccountManager(BaseChangeSecretPushManager):
return AutomationTypes.push_account
def get_secret(self, account):
return account.secret
secret = account.secret
if not secret:
secret = super().get_secret(account)
return secret
def gen_account_inventory(self, account, asset, h, path_dir):
secret = self.get_secret(account)