1
0
mirror of https://github.com/sjlongland/tornado-gallery.git synced 2025-09-13 08:42:23 +10:00

photo: Fix more default parameter bugs

This commit is contained in:
Stuart Longland 2018-04-18 13:26:16 +10:00
parent c7be34ce58
commit 8c67f262bf
Signed by: stuartl
GPG Key ID: 6AA32EFB18079BAA

View File

@ -118,10 +118,10 @@ class Photo(object):
# Dimensions and orientation
uri += '/%sx%s' % (width or '-', height or '-')
if rotation:
uri += '@%f' % rotation
uri += '@%f' % float(rotation)
# Quality
uri += '/%f' % quality
uri += '/%f' % float(quality or 60.0)
# Format; if given
if img_format is not None: