Skip to content

Commit ab7d99e

Browse files
Update filer/templatetags/filer_admin_tags.py
Co-authored-by: sourcery-ai[bot] <58596630+sourcery-ai[bot]@users.noreply.github.com>
1 parent 66ca5d8 commit ab7d99e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

filer/templatetags/filer_admin_tags.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ def get_aspect_ratio_and_download_url(context, detail, file, height, width):
190190
# because they don't really have width or height
191191
if file.width:
192192
width, height = 210, ceil(210 / file.width * file.height)
193-
context['sidebar_image_ratio'] = '%.6F' % (file.width / 210)
193+
context['sidebar_image_ratio'] = '%.6f' % (file.width / 210)
194194
return height, width, context
195195

196196

0 commit comments

Comments
 (0)