1
0
Fork 0
mirror of synced 2024-05-20 20:42:27 +12:00

Correct issue where _request was added to the keys, causing an invalid region to be detected

This commit is contained in:
Phxntxm 2017-03-24 15:36:47 -05:00
parent 8e2c943d24
commit 4a7eaaf4da

View file

@ -55,7 +55,7 @@ class Overwatch:
await ctx.send("I couldn't connect to overwatch at the moment!")
return
region = [x for x in data.keys() if data[x] is not None][0]
region = [x for x in data.keys() if data[x] is not None and x in ['us', 'any', 'kr', 'eu']][0]
stats = data[region]['stats']['quickplay']
output_data = [(k.title().replace("_", " "), r) for k, r in stats['game_stats'].items() if