steamcom 1.2.45__tar.gz → 1.2.46__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: steamcom
3
- Version: 1.2.45
3
+ Version: 1.2.46
4
4
  Summary: Python implementation of the Steam Community API
5
5
  Project-URL: Homepage, https://github.com/LinarSharifullin/steamcom
6
6
  Author: Linar Sharifullin
@@ -9,7 +9,7 @@ packages = ["/steamcom"]
9
9
  name = "steamcom"
10
10
  description = "Python implementation of the Steam Community API"
11
11
  # The version uploaded to pypi has been changed by action "pypi_publish.yml"
12
- version = "1.2.45"
12
+ version = "1.2.46"
13
13
  authors = [
14
14
  { name="Linar Sharifullin"},
15
15
  ]
@@ -233,9 +233,9 @@ class SteamClient:
233
233
 
234
234
  @login_required
235
235
  def get_wallet_balance(self, full_data: bool = False) -> Union[float, dict]:
236
- market_page_response = self.session.get(SteamUrl.COMMUNITY + '/market')
236
+ my_inventory_resposne = self.session.get(SteamUrl.COMMUNITY + '/my/inventory')
237
237
  pattern = r'var g_rgWalletInfo = (\{.*?\});'
238
- match = re.search(pattern, market_page_response.text)
238
+ match = re.search(pattern, my_inventory_resposne.text)
239
239
  balance_data = json.loads(match.group(1))
240
240
  if full_data:
241
241
  return balance_data
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes