Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Kunto
/
backoffice
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 14c3bf27
authored
Jul 31, 2019
by
Solo Group
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
advice
1 parent
20b0ae71
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
src/agratek/api/merchant/views/merchan.py
src/agratek/api/merchant/views/merchan.py
View file @
14c3bf2
...
...
@@ -254,7 +254,7 @@ def purchase(request, data, **kwargs):
@jsonrpc_method
(
method
=
'advice'
,
endpoint
=
'api-merchant'
)
def
advice
(
request
,
token
,
data
):
def
advice
(
request
,
data
):
"""
Digunakan untuk mendapatkan daftar produk
:param request:
...
...
@@ -281,7 +281,7 @@ def advice(request, token, data):
status:success/pending/failed
"""
user
=
auth_from_rpc
(
request
,
None
)
user
=
auth_from_rpc
(
request
)
i
=
0
is_list
=
type
(
data
)
==
list
data
=
is_list
and
data
or
[
data
]
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment