Commit 6bb6f1c7 by Arthur Barrett

add comment to explain json dump logic

parent e2e32e31
......@@ -92,6 +92,7 @@ def api_format(api_response):
content_type = 'application/json'
content = ''
# not doing a strict boolean check on data becuase it could be an empty list
if api_response.data is not None and api_response.data != '':
content = json.dumps(api_response.data)
......
Markdown is supported
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