From 30e64ecfc14582fc8c5f6f5ac9b8090799812a7a Mon Sep 17 00:00:00 2001 From: feng <1304903146@qq.com> Date: Wed, 12 Mar 2025 18:53:52 +0800 Subject: [PATCH] perf: change secret --- apps/accounts/api/automations/change_secret.py | 2 +- apps/accounts/api/automations/change_secret_dashboard.py | 2 +- apps/accounts/api/automations/push_account.py | 2 +- apps/i18n/core/es/LC_MESSAGES/django.po | 2 +- apps/i18n/core/ja/LC_MESSAGES/django.po | 2 +- apps/i18n/core/pt_BR/LC_MESSAGES/django.po | 2 +- apps/i18n/core/ru/LC_MESSAGES/django.po | 2 +- apps/i18n/core/zh/LC_MESSAGES/django.po | 2 +- apps/i18n/core/zh_Hant/LC_MESSAGES/django.po | 2 +- 9 files changed, 9 insertions(+), 9 deletions(-) diff --git a/apps/accounts/api/automations/change_secret.py b/apps/accounts/api/automations/change_secret.py index 6fe20a746..925126121 100644 --- a/apps/accounts/api/automations/change_secret.py +++ b/apps/accounts/api/automations/change_secret.py @@ -35,7 +35,7 @@ class ChangeSecretAutomationViewSet(OrgBulkModelViewSet): class ChangeSecretRecordViewSet(mixins.ListModelMixin, OrgGenericViewSet): filterset_class = ChangeSecretRecordFilterSet - search_fields = ('asset__address', 'account_username') + search_fields = ('asset__address', 'account__username') ordering_fields = ('date_finished',) tp = AutomationTypes.change_secret serializer_classes = { diff --git a/apps/accounts/api/automations/change_secret_dashboard.py b/apps/accounts/api/automations/change_secret_dashboard.py index 61ad372d4..9c7b9266f 100644 --- a/apps/accounts/api/automations/change_secret_dashboard.py +++ b/apps/accounts/api/automations/change_secret_dashboard.py @@ -155,7 +155,7 @@ class ChangeSecretDashboardApi(APIView): if name == self.task_name and tp == self.tp: execution_ids.append(_id) - snapshots = AutomationExecution.objects.filter(id__in=execution_ids).values_list('id', 'snapshot') + snapshots = AutomationExecution.objects.filter(id__in=execution_ids).values_list('snapshot', flat=True) asset_ids = {asset for i in snapshots for asset in i.get('assets', [])} account_ids = {account for i in snapshots for account in i.get('accounts', [])} diff --git a/apps/accounts/api/automations/push_account.py b/apps/accounts/api/automations/push_account.py index 13e89719d..812da9ab3 100644 --- a/apps/accounts/api/automations/push_account.py +++ b/apps/accounts/api/automations/push_account.py @@ -44,7 +44,7 @@ class PushAccountExecutionViewSet(AutomationExecutionViewSet): class PushAccountRecordViewSet(mixins.ListModelMixin, OrgGenericViewSet): filterset_class = PushAccountRecordFilterSet - search_fields = ('asset__address', 'account_username') + search_fields = ('asset__address', 'account__username') ordering_fields = ('date_finished',) tp = AutomationTypes.push_account serializer_classes = { diff --git a/apps/i18n/core/es/LC_MESSAGES/django.po b/apps/i18n/core/es/LC_MESSAGES/django.po index f78f6a2d5..ff49a8417 100644 --- a/apps/i18n/core/es/LC_MESSAGES/django.po +++ b/apps/i18n/core/es/LC_MESSAGES/django.po @@ -138,7 +138,7 @@ msgstr "" #: accounts/automations/push_account/manager.py:30 msgid "Secret cannot be empty" -msgstr "{} no puede estar vacío" +msgstr "" #: accounts/automations/verify_gateway_account/manager.py:18 msgid ">>> Start executing the task to test gateway account connectivity" diff --git a/apps/i18n/core/ja/LC_MESSAGES/django.po b/apps/i18n/core/ja/LC_MESSAGES/django.po index a3e62f7d0..93fd5633e 100644 --- a/apps/i18n/core/ja/LC_MESSAGES/django.po +++ b/apps/i18n/core/ja/LC_MESSAGES/django.po @@ -117,7 +117,7 @@ msgstr "" #: accounts/automations/push_account/manager.py:30 msgid "Secret cannot be empty" -msgstr "{} は空ではありません。" +msgstr "" #: accounts/automations/verify_gateway_account/manager.py:18 msgid ">>> Start executing the task to test gateway account connectivity" diff --git a/apps/i18n/core/pt_BR/LC_MESSAGES/django.po b/apps/i18n/core/pt_BR/LC_MESSAGES/django.po index f0f49d57c..1f3555d45 100644 --- a/apps/i18n/core/pt_BR/LC_MESSAGES/django.po +++ b/apps/i18n/core/pt_BR/LC_MESSAGES/django.po @@ -117,7 +117,7 @@ msgstr "" #: accounts/automations/push_account/manager.py:30 msgid "Secret cannot be empty" -msgstr "{} não pode estar vazio." +msgstr "" #: accounts/automations/verify_gateway_account/manager.py:18 msgid ">>> Start executing the task to test gateway account connectivity" diff --git a/apps/i18n/core/ru/LC_MESSAGES/django.po b/apps/i18n/core/ru/LC_MESSAGES/django.po index f163c30f0..9b7cd6b9e 100644 --- a/apps/i18n/core/ru/LC_MESSAGES/django.po +++ b/apps/i18n/core/ru/LC_MESSAGES/django.po @@ -119,7 +119,7 @@ msgstr "" #: accounts/automations/push_account/manager.py:30 msgid "Secret cannot be empty" -msgstr "{} не может быть пустым" +msgstr "" #: accounts/automations/verify_gateway_account/manager.py:18 msgid ">>> Start executing the task to test gateway account connectivity" diff --git a/apps/i18n/core/zh/LC_MESSAGES/django.po b/apps/i18n/core/zh/LC_MESSAGES/django.po index 6bccd570c..77eb4d78b 100644 --- a/apps/i18n/core/zh/LC_MESSAGES/django.po +++ b/apps/i18n/core/zh/LC_MESSAGES/django.po @@ -115,7 +115,7 @@ msgstr "" #: accounts/automations/push_account/manager.py:30 msgid "Secret cannot be empty" -msgstr "{} 不能为空" +msgstr "密文不能为空" #: accounts/automations/verify_gateway_account/manager.py:18 msgid ">>> Start executing the task to test gateway account connectivity" diff --git a/apps/i18n/core/zh_Hant/LC_MESSAGES/django.po b/apps/i18n/core/zh_Hant/LC_MESSAGES/django.po index 2f70f6f18..aff88a3d0 100644 --- a/apps/i18n/core/zh_Hant/LC_MESSAGES/django.po +++ b/apps/i18n/core/zh_Hant/LC_MESSAGES/django.po @@ -117,7 +117,7 @@ msgstr "" #: accounts/automations/push_account/manager.py:30 msgid "Secret cannot be empty" -msgstr "{} 不能為空" +msgstr "" #: accounts/automations/verify_gateway_account/manager.py:18 msgid ">>> Start executing the task to test gateway account connectivity"