archimed: json use double quote and not single quote
This commit is contained in:
parent
6ecd572fef
commit
a4ab4e3b3f
|
@ -92,11 +92,11 @@ def json_response(env, values, request, response):
|
|||
else:
|
||||
logger.warning('archimed json: no nameid id into get')
|
||||
return HTTPResponse(401, 'Unauthorized', headers,
|
||||
"{'error': 'bad parameter no nameid'}")
|
||||
'{"error": "bad parameter no nameid"}')
|
||||
associations = Association.get(site_name, unique_id)
|
||||
if not associations:
|
||||
return HTTPResponse(401, 'Unauthorized', headers,
|
||||
"{'error': '%s is not associate with %s'}" %\
|
||||
'{"error": "%s is not associate with %s"}' %\
|
||||
(unique_id, site_name))
|
||||
association = associations[0]
|
||||
|
||||
|
|
Reference in New Issue