From c720456749ac727fd7d77fdd01d3a4a95814a704 Mon Sep 17 00:00:00 2001 From: Sebastian Pipping Date: Mon, 10 Oct 2011 04:40:45 +0200 Subject: [PATCH] Fix sign of buy command (display only) --- client-barcode/freitagslib/commands.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client-barcode/freitagslib/commands.py b/client-barcode/freitagslib/commands.py index fb8f6c2..762d1fc 100644 --- a/client-barcode/freitagslib/commands.py +++ b/client-barcode/freitagslib/commands.py @@ -26,7 +26,7 @@ class DepositCommand(Command): class BuyCommand(Command): def __init__(self, item): self.item = item - self._difference = item.price + self._difference = -item.price def run(self, user_name): net.buy_item(self.item.id, user_name)