Skip to content

Commit

Permalink
fix synchronous stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
umbresp committed Feb 16, 2018
1 parent ee23b2f commit e831900
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion brawlstars.egg-info/PKG-INFO
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Metadata-Version: 1.0
Name: brawlstars
Version: 0.2.5
Version: 0.2.6
Summary: A wrapper, both asynchronous and not, for the Brawl Stars API made by Zihad!
Home-page: https://github.com/umbresp/brawlstars
Author: Umbresp
Expand Down
2 changes: 1 addition & 1 deletion brawlstars.egg-info/requires.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
requests
python-box
aiohttp
aiohttp
2 changes: 1 addition & 1 deletion brawlstars/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@
__author__ = 'Umbresp'
__title__ = 'brawlstars'
__license__ = 'MIT'
__version__ = '0.2.5'
__version__ = '0.2.6'
__github__ = 'https://www.github.com/umbresp/brawlstars'
4 changes: 2 additions & 2 deletions brawlstars/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def get_player(self, tag=None):
tag = tag.upper()

try:
resp = requests.get(f'{self.baseUrl}players/{tag}', params=self.headers, timeout=self.timeout)
resp = requests.get(f'{self.baseUrl}players/{tag}', headers=self.headers, timeout=self.timeout)
if resp.status_code == 200:
data = resp.json()
elif 500 > resp.status_code > 400:
Expand All @@ -54,7 +54,7 @@ def get_band(self, tag=None):
tag = tag.upper()

try:
resp = requests.get(f'{self.baseUrl}bands/{tag}', params=self.headers, timeout=self.timeout)
resp = requests.get(f'{self.baseUrl}bands/{tag}', headers=self.headers, timeout=self.timeout)
if resp.status_code == 200:
data = resp.json()
elif 500 > resp.status_code > 400:
Expand Down
Binary file added dist/brawlstars-0.2.5.tar.gz
Binary file not shown.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

setup(
name='brawlstars',
version='0.2.5',
version='0.2.6',
description='A wrapper, both asynchronous and not, for the Brawl Stars API made by Zihad!',
long_description="I am bad at writing descriptions. TODO",
url='https://github.com/umbresp/brawlstars',
Expand Down

0 comments on commit e831900

Please sign in to comment.