From f244526458001159998019f0ef5976d00d9e794c Mon Sep 17 00:00:00 2001 From: Anna Wiggins Date: Thu, 28 Jan 2016 13:06:48 -0500 Subject: [PATCH] Return calculated assets from update_credits. --- inara.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/inara.py b/inara.py index fa34c64..659171a 100644 --- a/inara.py +++ b/inara.py @@ -58,7 +58,7 @@ class InaraSession(CachedSession): def update_credits(self, credits): soup = self.get_soup(CMDR_URL) if not self._inara_is_logged_in(soup): - return False + return None oass = int(soup.find(id='oassinput')['value']) data = { @@ -70,7 +70,7 @@ class InaraSession(CachedSession): } r = self.post(CMDR_URL, data=data) r.raise_for_status() - return True + return credits + oass def update_location(self, location): data = {