From a0b3a144c6b30122e92eb5c3ca6d3311612f86e5 Mon Sep 17 00:00:00 2001 From: j Date: Mon, 2 Dec 2019 13:40:52 +0100 Subject: [PATCH] fix typo --- pandora/document/models.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pandora/document/models.py b/pandora/document/models.py index 838168ee..0c653fa5 100644 --- a/pandora/document/models.py +++ b/pandora/document/models.py @@ -540,7 +540,7 @@ class Document(models.Model, FulltextMixin): if size: path = os.path.join(folder, '%dp%d.jpg' % (size, page)) if len(crop) == 4: - path = os.path.join(folder, '%dp%d,%s.jpg' % (1024, page, ','.join(map(str, crop))) + path = os.path.join(folder, '%dp%d,%s.jpg' % (1024, page, ','.join(map(str, crop)))) if not os.path.exists(path): img = Image.open(src).crop(crop) img.save(path) @@ -548,7 +548,7 @@ class Document(models.Model, FulltextMixin): img = Image.open(path) src = path if size < max(img.size): - path = os.path.join(folder, '%dp%d,%s.jpg' % (size, page, ','.join(map(str, crop))) + path = os.path.join(folder, '%dp%d,%s.jpg' % (size, page, ','.join(map(str, crop)))) if not os.path.exists(path): resize_image(src, path, size=size) elif self.extension in ('jpg', 'png', 'gif'):