logging part 2

This commit is contained in:
pau sch 2022-07-15 08:39:42 +02:00
parent e8d18b16df
commit d818780043

View file

@ -38,6 +38,7 @@ def response(resp):
if 'results' in json_data: if 'results' in json_data:
for result in json_data['images']: for result in json_data['images']:
logger.debug("query --> %s", result.get(result['representations']['thumb']))
results.append( results.append(
{ {
'template': 'images.html', 'template': 'images.html',
@ -48,5 +49,5 @@ def response(resp):
'content': result.get('description') or '', 'content': result.get('description') or '',
} }
) )
logger.debug(results)
return results return results