From 7c9a53236942caf9ede4abe9da75d7a0aebdcbc0 Mon Sep 17 00:00:00 2001 From: xtaodada Date: Sat, 27 Apr 2024 19:48:20 +0800 Subject: [PATCH] :bug: Fix save empty abyss data history --- plugins/genshin/abyss.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/genshin/abyss.py b/plugins/genshin/abyss.py index bf1dc41c..4131af64 100644 --- a/plugins/genshin/abyss.py +++ b/plugins/genshin/abyss.py @@ -184,7 +184,8 @@ class AbyssPlugin(Plugin): if not client.public: # noqa avatars = await client.get_genshin_characters(uid, lang="zh-cn") avatar_data = {i.id: i.constellation for i in avatars} - await self.save_abyss_data(uid, abyss_data, avatar_data) + if abyss_data.unlocked and abyss_data.ranks.most_kills: + await self.save_abyss_data(uid, abyss_data, avatar_data) return abyss_data, avatar_data async def get_rendered_pic( # skipcq: PY-R1000 #