1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2024-11-27 13:34:28 +00:00

Added some debug prints

This commit is contained in:
Steffo 2016-08-13 15:46:07 +02:00
parent 2b2a7051d4
commit d655f2409c
2 changed files with 4 additions and 0 deletions

View file

@ -23,6 +23,7 @@ roman = ['I', 'II', 'III', 'IV', 'V']
# Get player rank info
async def get_player_rank(region: str, summonerid: int, **kwargs):
print("[League] Getting league info for: {region} {summonerid}".format(region=region, summonerid=summonerid))
# GET the json unofficial API response
r = await loop.run_in_executor(None, requests.get,
'https://{region}.api.pvp.net/api/lol/{region}/v2.5/league/by-summoner/{summonerid}'

View file

@ -4,6 +4,9 @@ loop = asyncio.get_event_loop()
# Get player data
async def get_player_data(platform: str, region: str, battletag: str, **kwargs):
print("[Overwatch] Getting player info for: {platform} {region} {battletag}".format(platform=platform,
region=region,
battletag=battletag))
# Unofficial API requires - for discriminator numbers
battletag = battletag.replace("#", "-")
# GET the json unofficial API response