Skip to content

Commit

Permalink
fix a bug
Browse files Browse the repository at this point in the history
  • Loading branch information
SharpBit committed Dec 9, 2018
1 parent 6e5aa9c commit 914d180
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 4 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
# Change Log
All notable changes to this project will be documented in this file.

## [2.1.7] - 12/9/18
### Fixed
- Fixed a bug in the sync version of `get_constants()` where there was an extra `await`

## [2.1.6] - 12/8/18
### Added
- Constants extracted from the Brawl Stars App using `Client.get_constants`
Expand Down
2 changes: 1 addition & 1 deletion brawlstats/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
############


__version__ = 'v2.1.6'
__version__ = 'v2.1.7'
__title__ = 'brawlstats'
__license__ = 'MIT'
__author__ = 'SharpBit'
Expand Down
2 changes: 1 addition & 1 deletion brawlstats/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ def get_constants(self, key=None):
"""
if self.is_async:
return self._get_constants_async(key)
data, resp = await self._get(self.api.constants)
data, resp = self._get(self.api.constants)
if key and not data.get(key):
raise KeyError('No such key for Brawl Stars constants "{}"'.format(key))
if key and data.get(key):
Expand Down
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
# The short X.Y version
version = '2.1'
# The full version, including alpha/beta/rc tags
release = '2.1.6'
release = '2.1.7'


# -- General configuration ---------------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

setup(
name='brawlstats',
version='2.1.6',
version='2.1.7',
description='An async Python API wrapper for the unofficial Brawl Stars API',
long_description=long_description,
long_description_content_type='text/x-rst',
Expand Down

0 comments on commit 914d180

Please sign in to comment.