Closed GregShiner closed 2 years ago
Additionally, here is the Bungie.net API documentation for this enumerator for reference. https://bungie-net.github.io/#/components/schemas/Destiny.DestinyUnlockValueUIStyle
I made a PR just using the GitHub built-in editor but I have not been able to run tests since I cannot get my environment to work properly.
Thanks for catching that, Will take a look at the PR now :)
Long story short.
The enumeration for
GreenPips
is not in theValueUIStyle
enumerator.Expected Result
The value
10
would be enumerated toGREEN_PIPS
Actual Result
This bug causes a
ValueError
when you try to enumerate10
.System info
Ubuntu 20.04 on WSL Python 3.9.5 aiobungie 0.2.5
Further info
The solution is incredibly simple. Just add
GREEN_PIPS = 10
toclass ValueUIStyle(enums.IntEnum):
incrate.entity.py
. I've attached a patch file that will solve this issue. I'm having trouble right now getting a development copy on my system so I can't just submit a PR at this moment. Just apply the patch tocrate/entity.py
withpatch crate/entity.py < patch.txt
patch.txt