mirror of
https://github.com/PaiGramTeam/MibooGram.git
synced 2024-11-16 04:45:27 +00:00
🐛 Fix playcard data get invalid key
This commit is contained in:
parent
dc32f88f84
commit
bc8d0f8244
@ -68,7 +68,7 @@ class PlayerCardsFile:
|
||||
if old_data is None:
|
||||
await self.save_json(self.get_file_path(uid), data)
|
||||
return data
|
||||
data["avatarInfoList"] = data.get("avatars") or []
|
||||
data["avatarInfoList"] = data.get("avatarInfoList") or []
|
||||
characters = [i.get("avatarId", 0) for i in data["avatarInfoList"]]
|
||||
for i in old_data["avatarInfoList"]:
|
||||
if i.get("avatarId", 0) not in characters:
|
||||
|
Loading…
Reference in New Issue
Block a user