also apply fix to get_thumbnail

pull/471/head
Christopher Usher 3 weeks ago committed by Mike Lang
parent 861a426395
commit add8d021a8

@ -765,7 +765,7 @@ def get_thumbnail(ident):
if event['thumbnail_mode'] != 'NONE' and event['thumbnail_image']: if event['thumbnail_mode'] != 'NONE' and event['thumbnail_image']:
logging.info('Thumbnail for event {} fetched'.format(ident)) logging.info('Thumbnail for event {} fetched'.format(ident))
return flask.Response(event['thumbnail_image'], mimetype='image/png') return flask.Response(bytes(event['thumbnail_image']), mimetype='image/png')
else: else:
return '', 404 return '', 404

Loading…
Cancel
Save