Commit 4ee3db6a authored by echel0n's avatar echel0n
Browse files

Fixed issue with how data is formatted on return for app api

parent c63362ab
# Changelog
- * b833c7e - 2018-06-21: Added AppID registration to account profiles
- * c8b89fe - 2018-06-21: Fixed issue with how data is formatted on return for app api
- * c63362a - 2018-06-21: Added AppID registration to account profiles
- * 08580c9 - 2018-06-20: Release v9.3.37
- * 5e91170 - 2018-06-20: Release v9.3.36
- * e6f02d4 - 2018-06-19: Pre-Release v9.3.36.dev1
......
......@@ -508,9 +508,8 @@ def _responds(result_type, data=None, msg=""):
"""
if data is None:
data = {}
return {"result": result_type_map[result_type],
"message": msg,
"data": data}
return {"result": result_type_map[result_type], "message": msg, "data": data}
def _get_status_Strings(s):
......@@ -639,7 +638,7 @@ class CMD_Help(ApiCall):
""" Get help about a given command """
if self.subject in self.api_calls:
api_func = self.api_calls.get(self.subject)
out = _responds(RESULT_SUCCESS, api_func(self.application, self.request, **{"help": 1}).run())
out = api_func(self.application, self.request, **{"help": 1}).run()
else:
out = _responds(RESULT_FAILURE, msg="No such cmd")
return out
......
......@@ -86,8 +86,7 @@
<div class="col-md-12">
<h4>${_('Playground')}</h4>
<span>
${_('URL:')} <kbd id="command-${command_id}-base-url">/api/${apikey}
/?cmd=${command}</kbd>
${_('URL:')} <kbd id="command-${command_id}-base-url">/api/${apikey}/?cmd=${command}</kbd>
</span>
</div>
</div>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment