Skip to content

Commit

Permalink
views: fixes record thumbnail view (closes #2097)
Browse files Browse the repository at this point in the history
*Fixes issue with different extensions present in the record
  • Loading branch information
Glignos authored and slint committed Jan 27, 2021
1 parent c9c6d61 commit 0d128c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion zenodo/modules/records/views.py
Expand Up @@ -478,7 +478,7 @@ def record_thumbnail(pid, record, thumbnail_size, **kwargs):
size=thumbnail_size,
rotation='0',
quality='default',
image_format=file['type'])
image_format=selected['type'])
else:
abort(404, 'This record has no thumbnails')

Expand Down

0 comments on commit 0d128c1

Please sign in to comment.