From d655f2409c6c0a166da65c7f8c3e4b030ab47a0b Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Sat, 13 Aug 2016 15:46:07 +0200 Subject: [PATCH] Added some debug prints --- league.py | 1 + overwatch.py | 3 +++ 2 files changed, 4 insertions(+) diff --git a/league.py b/league.py index ad512cb9..0a3b8563 100644 --- a/league.py +++ b/league.py @@ -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}' diff --git a/overwatch.py b/overwatch.py index 08a5648a..df50ef25 100644 --- a/overwatch.py +++ b/overwatch.py @@ -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