Skip to content

Commit

Permalink
Merge pull request #8 from offish/v1.2.3
Browse files Browse the repository at this point in the history
v1.2.3
  • Loading branch information
offish authored May 31, 2020
2 parents 0d0d6f9 + 59639b8 commit 4a74e3b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion steam_community_market/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
__title__ = "steam_community_market"
__author__ = "offish"
__license__ = "MIT"
__version__ = "1.2.2"
__version__ = "1.2.3"

from .market import Market
from .request import request
Expand Down
8 changes: 4 additions & 4 deletions steam_community_market/market.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def get_overview(self, name: str, app_id) -> dict:
:return: An overview of the item on success, :class:`None` otherwise. Overview includes both volume and prices.
:rtype: Optional[:class:`dict`]
.. versionchanged:: 1.2.2
.. versionchanged:: 1.2.3
.. versionadded:: 1.0.0
"""

Expand All @@ -70,9 +70,9 @@ def get_overview(self, name: str, app_id) -> dict:
payload = {"appid": app_id, "market_hash_name": name, "currency": self.currency}
response = request(self.URI, payload)

if response["success"] == True:
return response
return None
if not response or response["success"] == False:
return None
return response


def get_overviews(self, names: list, app_id) -> dict:
Expand Down

0 comments on commit 4a74e3b

Please sign in to comment.