Commit 14c3bf27 by Solo Group

advice

1 parent 20b0ae71
...@@ -254,7 +254,7 @@ def purchase(request, data, **kwargs): ...@@ -254,7 +254,7 @@ def purchase(request, data, **kwargs):
@jsonrpc_method(method='advice', endpoint='api-merchant') @jsonrpc_method(method='advice', endpoint='api-merchant')
def advice(request, token, data): def advice(request, data):
""" """
Digunakan untuk mendapatkan daftar produk Digunakan untuk mendapatkan daftar produk
:param request: :param request:
...@@ -281,7 +281,7 @@ def advice(request, token, data): ...@@ -281,7 +281,7 @@ def advice(request, token, data):
status:success/pending/failed status:success/pending/failed
""" """
user = auth_from_rpc(request, None) user = auth_from_rpc(request)
i = 0 i = 0
is_list = type(data) == list is_list = type(data) == list
data = is_list and data or [data] data = is_list and data or [data]
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!