mirror of
https://github.com/PaiGramTeam/PaiGram.git
synced 2024-11-21 22:58:05 +00:00
🐛 Fix save empty abyss data history
This commit is contained in:
parent
fbb7f028f0
commit
7c9a532369
@ -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 #
|
||||
|
Loading…
Reference in New Issue
Block a user