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':