mirror of
https://github.com/PaiGramTeam/PaiGram.git
synced 2024-11-25 09:37:30 +00:00
🐛 Fix save empty abyss data history
This commit is contained in:
parent
fbb7f028f0
commit
7c9a532369
@ -184,6 +184,7 @@ 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}
|
||||
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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user