From c33c558f52ee8c61f69e8c92538035827d983ccd Mon Sep 17 00:00:00 2001 From: feng <1304903146@qq.com> Date: Fri, 14 Mar 2025 16:56:09 +0800 Subject: [PATCH] perf: translate --- apps/accounts/automations/gather_account/manager.py | 4 ++-- apps/i18n/lina/zh.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/accounts/automations/gather_account/manager.py b/apps/accounts/automations/gather_account/manager.py index ad2a6994c..2b984935f 100644 --- a/apps/accounts/automations/gather_account/manager.py +++ b/apps/accounts/automations/gather_account/manager.py @@ -1,6 +1,6 @@ +import time from collections import defaultdict -import time from django.utils import timezone from accounts.const import AutomationTypes @@ -378,7 +378,7 @@ class GatherAccountsManager(AccountBasePlaybookManager): if not self.is_sync_account: continue gathered_accounts = GatheredAccount.objects.filter(asset=asset) - GatheredAccount.sync_accounts(gathered_accounts, self.is_sync_account) + GatheredAccount.sync_accounts(gathered_accounts) GatheredAccount.objects.filter( asset=asset, username__in=ori_users, present=False ).update( diff --git a/apps/i18n/lina/zh.json b/apps/i18n/lina/zh.json index b208d0608..31a7327fb 100644 --- a/apps/i18n/lina/zh.json +++ b/apps/i18n/lina/zh.json @@ -813,7 +813,7 @@ "NeedReLogin": "需要重新登录", "NeverLogin": "永不登录", "New": "新建", - "NewAccountsFound": "新增账号", + "NewAccountsFound": "新发现", "NewChat": "新聊天", "NewCount": "新增", "NewCron": "生成 Cron",