Skip to content

Commit 66ca5d8

Browse files
committed
fix: Avoid locale-dependent ratio
1 parent 55a0e70 commit 66ca5d8

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'] = file.width / 210
193+
context['sidebar_image_ratio'] = '%.6F' % (file.width / 210)
194194
return height, width, context
195195

196196

0 commit comments

Comments
 (0)