Skip to content

Commit

Permalink
fix(gacha): Manually specify banner type
Browse files Browse the repository at this point in the history
  • Loading branch information
jokelbaf committed Jun 10, 2024
1 parent 1ccc8c3 commit dbca3cd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion kuro/client/components/gacha.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ async def get_gacha_record(
errors.raise_from_data(rsp)

return [
GachaWeapon(**record) if record["resourceId"] >= 100000 else GachaCharacter(**record)
GachaWeapon(**{**record, "cardPoolType": banner}) if record["resourceId"] >= 100000
else GachaCharacter(**{**record, "cardPoolType": banner})
for record in rsp["data"]
]

0 comments on commit dbca3cd

Please sign in to comment.