Interests: C++ / Unreal Engine / Python
Reach out to me on LinkedIn!
Asynchronous Challonge library for Python 3.5+
Home Page: http://achallonge.readthedocs.io/en/latest/index.html
License: MIT License
The package is unable to run with current versions of aiohttp
File "/home/luci/Purah-Cogs/tournaments/tournaments.py", line 889, in end_to
urnament
ranking = await tournament.get_final_ranking() # type: dict
File "/home/luci/purahenv/lib/python3.7/site-packages/challonge/tournament.p
y", line 783, in get_final_ranking
return OrderedDict(sorted(ranking.items(), key=lambda t: t[0]))
TypeError: '<' not supported between instances of 'NoneType' and 'int'
No clue what I'm doing wrong. This is after I called Tournament.finalize()
, and it worked (and I ignored the challonge.APIException
, see #5 for details on that), and I made sure it worked by checking on Challonge.
Calling this method will always raise a challonge.APIException
, even if it actually worked. I'd expect it to return None if it worked.
report_winner
function seems not to work correctly while being used for matches inside a group stage. The associated group_player_ids
for a player inside a group is not understanted by the function report_winner(..)
. This function expects a player with the id
attribute equals to group_player_ids
but get a player with his original id (outsite group stage) and crash.
example, with 2 objects player
and match
:
In [68]: player
Out[68]: <challonge.participant.Participant at 0x23866bb9c40>
In [69]: player.id
Out[69]: 152547829
In [70]: player.group_player_ids
Out[70]: [17666281]
In [72]: match.player1_id
Out[72]: 17666281
await match.report_winner(player,score)
Error call : `APIException: ({'errors': ['Winner ID must be one of the player/participant IDs']}, 422, 'Unprocessable Entity', 'tournaments/10145851/matches/247328813', [('match[scores_csv]', '1-0'), ('match[winner_id]', '152547845')])
I tried making a bot for Discord using your library. Though when i did everything that was mentioned here I just get [Errno 101] Cannot connect to host api.challonge.com:443 ssl:True [Can not connect to api.challonge.com:443 [Network is unreachable]]. Any ideas on what's wrong?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.