From c9b58c5acc0ea55b02b0482ea18d4fc1f430ced1 Mon Sep 17 00:00:00 2001 From: xtaodada Date: Sun, 8 Dec 2024 23:38:52 +0800 Subject: [PATCH] :bug: Fix AttributeError in stats allow_mutation --- plugins/genshin/achievement.py | 1 - plugins/genshin/stats.py | 1 - 2 files changed, 2 deletions(-) diff --git a/plugins/genshin/achievement.py b/plugins/genshin/achievement.py index 5a9db513..4464c8c4 100644 --- a/plugins/genshin/achievement.py +++ b/plugins/genshin/achievement.py @@ -101,7 +101,6 @@ class AchievementPlugins(Plugin): # TODO: 并发下载所有资源 for item in data.list: - item.__config__.allow_mutation = True if icon := await self._download_resource(item.icon): item.icon = icon diff --git a/plugins/genshin/stats.py b/plugins/genshin/stats.py index a45b783b..e3d83d6f 100644 --- a/plugins/genshin/stats.py +++ b/plugins/genshin/stats.py @@ -123,7 +123,6 @@ class PlayerStatsPlugins(Plugin): # 探索地区 for item in data.explorations: - item.__config__.allow_mutation = True item.icon = await self._download_resource(item.icon) item.cover = await self._download_resource(item.cover)