From df71301aaca531e2046cd8e12ec9dd7c021ed3c0 Mon Sep 17 00:00:00 2001 From: omg-xtao <100690902+omg-xtao@users.noreply.github.com> Date: Fri, 7 Oct 2022 14:50:25 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20=E4=BF=AE=E5=A4=8D=E6=B7=B1?= =?UTF-8?q?=E6=B8=8A=E6=8E=A8=E8=8D=90=E9=85=8D=E9=98=9F=E5=9C=A8=E6=9C=AA?= =?UTF-8?q?=E7=BB=91=E5=AE=9A=E6=97=B6=E5=85=A8=E7=81=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugins/genshin/abyss_team.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/genshin/abyss_team.py b/plugins/genshin/abyss_team.py index e46bda3..df00955 100644 --- a/plugins/genshin/abyss_team.py +++ b/plugins/genshin/abyss_team.py @@ -70,7 +70,7 @@ class AbyssTeam(Plugin, BasePlugin): "icon": (await self.assets_service.avatar(roleToId(i.name)).icon()).as_uri(), "name": i.name, "background": self._get_role_star_bg(i.star), - "hava": i.name in user_data, + "hava": (i.name in user_data) if user_data else True, } abyss_team_data["up"].append(temp) for i in team_data.rateListDown[0].formation: @@ -78,7 +78,7 @@ class AbyssTeam(Plugin, BasePlugin): "icon": (await self.assets_service.avatar(roleToId(i.name)).icon()).as_uri(), "name": i.name, "background": self._get_role_star_bg(i.star), - "hava": i.name in user_data, + "hava": (i.name in user_data) if user_data else True, } abyss_team_data["down"].append(temp) await message.reply_chat_action(ChatAction.UPLOAD_PHOTO)