Skip to content

Commit 914d180

Browse files
committed
fix a bug
1 parent 6e5aa9c commit 914d180

File tree

5 files changed

+8
-4
lines changed

5 files changed

+8
-4
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
# Change Log
22
All notable changes to this project will be documented in this file.
33

4+
## [2.1.7] - 12/9/18
5+
### Fixed
6+
- Fixed a bug in the sync version of `get_constants()` where there was an extra `await`
7+
48
## [2.1.6] - 12/8/18
59
### Added
610
- Constants extracted from the Brawl Stars App using `Client.get_constants`

brawlstats/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
############
88

99

10-
__version__ = 'v2.1.6'
10+
__version__ = 'v2.1.7'
1111
__title__ = 'brawlstats'
1212
__license__ = 'MIT'
1313
__author__ = 'SharpBit'

brawlstats/core.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ def get_constants(self, key=None):
232232
"""
233233
if self.is_async:
234234
return self._get_constants_async(key)
235-
data, resp = await self._get(self.api.constants)
235+
data, resp = self._get(self.api.constants)
236236
if key and not data.get(key):
237237
raise KeyError('No such key for Brawl Stars constants "{}"'.format(key))
238238
if key and data.get(key):

docs/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
# The short X.Y version
2727
version = '2.1'
2828
# The full version, including alpha/beta/rc tags
29-
release = '2.1.6'
29+
release = '2.1.7'
3030

3131

3232
# -- General configuration ---------------------------------------------------

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
setup(
77
name='brawlstats',
8-
version='2.1.6',
8+
version='2.1.7',
99
description='An async Python API wrapper for the unofficial Brawl Stars API',
1010
long_description=long_description,
1111
long_description_content_type='text/x-rst',

0 commit comments

Comments
 (0)