1
0
mirror of https://github.com/gsi-upm/senpy synced 2024-11-22 00:02:28 +00:00

Change params dict structure. #42

This commit is contained in:
militarpancho 2017-07-14 11:51:58 +02:00
parent 7f44f9e85d
commit 7547fc49af

View File

@ -118,11 +118,7 @@ def basic_api(f):
def api():
phelp = request.params.get('help')
if phelp == "True":
dic = {'WEB_PARAMS': WEB_PARAMS,
'CLI_PARAMS': CLI_PARAMS,
'NIF_PARAMS': NIF_PARAMS,
'API_PARAMS': API_PARAMS
}
dic = dict(API_PARAMS, **NIF_PARAMS)
response = Response(dic)
return response
else: