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:
parent
c7be34ce58
commit
8c67f262bf
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user