From 3203fe94451fdfbac5748e1eef05b5f74dbe1c58 Mon Sep 17 00:00:00 2001 From: Zebartin <16185081+Zebartin@users.noreply.github.com> Date: Mon, 2 Oct 2023 21:52:51 +0800 Subject: [PATCH] Fix: Search of assignment group buttons --- tasks/assignment/assets/__init__.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tasks/assignment/assets/__init__.py b/tasks/assignment/assets/__init__.py index 6626f5304..ee33bd543 100644 --- a/tasks/assignment/assets/__init__.py +++ b/tasks/assignment/assets/__init__.py @@ -3,7 +3,8 @@ from tasks.assignment.assets.assets_assignment_ui import ( CHARACTER_MATERIALS_CHECK, CHARACTER_MATERIALS_CLICK, EXP_MATERIALS_CREDITS_CHECK, EXP_MATERIALS_CREDITS_CLICK, GROUP_SEARCH, SPACE_STATION_TASK_FORCE_CHECK, SPACE_STATION_TASK_FORCE_CLICK, - SYNTHESIS_MATERIALS_CHECK, SYNTHESIS_MATERIALS_CLICK) + SYNTHESIS_MATERIALS_CHECK, SYNTHESIS_MATERIALS_CLICK +) for group_button_wrapper in ( SPACE_STATION_TASK_FORCE_CHECK, SPACE_STATION_TASK_FORCE_CLICK, @@ -12,7 +13,7 @@ for group_button_wrapper in ( SYNTHESIS_MATERIALS_CHECK, SYNTHESIS_MATERIALS_CLICK, ): for lang in VALID_LANG: - button = getattr(group_button_wrapper, lang, None) + button = group_button_wrapper.data_buttons.get(lang, None) if button is None: continue button.search = GROUP_SEARCH.button