Propaget deposit flag to server

This commit is contained in:
Sebastian Pipping 2011-10-10 07:53:07 +02:00
parent 16f24cb4a3
commit 22d0bf50b9
1 changed files with 1 additions and 1 deletions

View File

@ -54,7 +54,7 @@ def get_user_name_from_auth_blob(authblob):
def buy_item(item_id, with_deposit, user_name): def buy_item(item_id, with_deposit, user_name):
require_type(int, item_id) 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)), content = _request('buyable/item/' + urllib.quote(str(item_id)),
{'user':user_name, 'deposit':deposit, 'amount':1}, method='POST') {'user':user_name, 'deposit':deposit, 'amount':1}, method='POST')
if content != 'Created': if content != 'Created':