1
0
Fork 0
mirror of synced 2024-05-19 12:02:29 +12:00

Changed check to = empty string

This commit is contained in:
Phxntxm 2016-07-14 08:19:28 -05:00
parent 89ac5f092c
commit 2d1a9945b5

View file

@ -40,7 +40,7 @@ class Overwatch:
await self.bot.say("Searching profile information....")
try:
if hero:
if hero = "":
result = urllib.request.urlopen(base_url + "{}/stats/general".format(bt))
data = json.loads(result.read().decode('utf-8'))
fmt = "\n".join("{}: {}".format(i, r) for i, r in data['game_stats'].items() if i in check_g_stats)