fp12 / pychallonge_async

Python bindings for the CHALLONGE! API
http://challonge.com/api
BSD 2-Clause "Simplified" License
2 stars 1 forks source link

Weird issue parsing group-player-ids / group-player-id #5

Open jacobSingh opened 7 years ago

jacobSingh commented 7 years ago

Consider the document here:

`

46581103 2923415 John Casey 1 true 2016-10-18T19:37:32+02:00 2016-10-18T19:37:32+02:00 9 false false false true false John Casey John Casey false false false 3784682 ` group-player-ids comes back as a list of an empty dictionary. I'm not too strong in python, but it seems that what's happening is that the grandchild becomes root, and the grandchild has no children, so it never gets values assigned... Shouldn't the array code, pass the child in instead of the grandchildren?
jacobSingh commented 7 years ago

Actually, this is a big bug... no arrays seem to work at the end of the tree.

Adding a PR