Propaget deposit flag to server
This commit is contained in:
parent
16f24cb4a3
commit
22d0bf50b9
|
@ -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':
|
||||||
|
|
Loading…
Reference in New Issue