add comment to explain json dump logic

This commit is contained in:
Arthur Barrett
2013-05-13 12:05:33 -04:00
parent e2e32e31d9
commit 6bb6f1c743

View File

@@ -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)