Skip to content

Commit

Permalink
Client - Fix seting steamRememberLogin cookie in login #291
Browse files Browse the repository at this point in the history
  • Loading branch information
nas- authored Sep 25, 2023
1 parent d53e049 commit 076ca39
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion steampy/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def login(self, username: str = None, password: str = None, steam_guard: str = N
self.steam_guard = guard.load_steam_guard(steam_guard)
self.username = username
self._password = password

self._session.cookies.set("steamRememberLogin", 'true')
LoginExecutor(self.username, self._password, self.steam_guard['shared_secret'], self._session).login()
self.was_login_executed = True
self.market._set_login_executed(self.steam_guard, self._get_session_id())
Expand Down
2 changes: 1 addition & 1 deletion steampy/market.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def _set_login_executed(self, steamguard: dict, session_id: str):
self._session_id = session_id
self.was_login_executed = True

def fetch_price(self, item_hash_name: str, game: GameOptions, currency: str = Currency.USD, country='PL') -> dict:
def fetch_price(self, item_hash_name: str, game: GameOptions, currency: Currency = Currency.USD, country='PL') -> dict:
url = SteamUrl.COMMUNITY_URL + '/market/priceoverview/'
params = {'country': country,
'currency': currency.value,
Expand Down

0 comments on commit 076ca39

Please sign in to comment.