From 4f3bc87733bf229f05efd0fa1d93445190bfbfa7 Mon Sep 17 00:00:00 2001 From: brmbar Date: Tue, 6 Aug 2013 22:30:27 +0200 Subject: [PATCH] Shop.inventory_balance(): Use buy price, not sell price --- brmbar3/brmbar/Shop.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/brmbar3/brmbar/Shop.py b/brmbar3/brmbar/Shop.py index 5cb378c..0ec4282 100644 --- a/brmbar3/brmbar/Shop.py +++ b/brmbar3/brmbar/Shop.py @@ -130,7 +130,7 @@ class Shop: # might have been bought for a different price! Therefore, # we need to replace the command below with a complex SQL # statement that will... ugh, accounting is hard! - balance += inv.currency.convert(inv.balance(), self.currency) + balance += inv.balance() * inv.currency.rates(self.currency)[0] return balance def inventory_balance_str(self): return self.currency.str(self.inventory_balance())