From 8c67f262bf3c3f5685ddec08c12a9adfcf6f8ebe Mon Sep 17 00:00:00 2001 From: Stuart Longland Date: Wed, 18 Apr 2018 13:26:16 +1000 Subject: [PATCH] photo: Fix more default parameter bugs --- tornado_gallery/photo.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tornado_gallery/photo.py b/tornado_gallery/photo.py index 6e1fe9c..d679846 100644 --- a/tornado_gallery/photo.py +++ b/tornado_gallery/photo.py @@ -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: