From 95869d1daafb1ee865fd99fd23d7315275157302 Mon Sep 17 00:00:00 2001 From: Anna Wiggins Date: Thu, 21 Jan 2016 11:29:22 -0500 Subject: [PATCH] Fix some old references to 'session' instead of 'self'. --- inara.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/inara.py b/inara.py index 0831024..fa34c64 100644 --- a/inara.py +++ b/inara.py @@ -56,7 +56,7 @@ class InaraSession(CachedSession): return logout_link is not None def update_credits(self, credits): - soup = session.get_soup(CMDR_URL) + soup = self.get_soup(CMDR_URL) if not self._inara_is_logged_in(soup): return False @@ -84,14 +84,14 @@ class InaraSession(CachedSession): result = {} if wing_id is not None and cmdr_id is not None: - wing_soup = session.get_soup("%s/wing/%s" % (BASE_URL, wing_id)) + wing_soup = self.get_soup("%s/wing/%s" % (BASE_URL, wing_id)) result['rank'] = _get_rank(wing_soup, cmdr_id) result['location'] = _get_location(wing_soup, cmdr_id) if cmdr_id is not None: - cmdr_soup = session.get_soup("%s/cmdr/%s" % (BASE_URL, cmdr_id)) + cmdr_soup = self.get_soup("%s/cmdr/%s" % (BASE_URL, cmdr_id)) else: - cmdr_soup = session.get_soup(CMDR_URL) + cmdr_soup = self.get_soup(CMDR_URL) result['balance'] = _get_cmdr_balance(cmdr_soup) result['assets'] = _get_cmdr_assets(cmdr_soup)