From 22d0bf50b94f883ac17ad5450641ae4424445636 Mon Sep 17 00:00:00 2001 From: Sebastian Pipping Date: Mon, 10 Oct 2011 07:53:07 +0200 Subject: [PATCH] Propaget deposit flag to server --- client-barcode/freitagslib/network.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client-barcode/freitagslib/network.py b/client-barcode/freitagslib/network.py index 280ee56..fad5a0f 100644 --- a/client-barcode/freitagslib/network.py +++ b/client-barcode/freitagslib/network.py @@ -54,7 +54,7 @@ def get_user_name_from_auth_blob(authblob): def buy_item(item_id, with_deposit, user_name): require_type(int, item_id) - deposit = 0 ## TODO 1 if with_deposit else 0 + deposit = 1 if with_deposit else 0 content = _request('buyable/item/' + urllib.quote(str(item_id)), {'user':user_name, 'deposit':deposit, 'amount':1}, method='POST') if content != 'Created':