Corrected error while getting thumbnails by height
authorThierry Florac <thierry.florac@onf.fr>
Mon, 12 Mar 2018 16:02:32 +0100
changeset 87 a6e290d79a2e
parent 86 66f5636ccc54
child 88 f58edd0e42b8
Corrected error while getting thumbnails by height
src/pyams_file/thumbnail.py
--- a/src/pyams_file/thumbnail.py	Sun Mar 11 11:23:24 2018 +0100
+++ b/src/pyams_file/thumbnail.py	Mon Mar 12 16:02:32 2018 +0100
@@ -69,7 +69,7 @@
         else:
             match = THUMB_HEIGHT.match(thumbnail_name)
             if match:
-                h = int(match.group()[0])
+                h = int(match.groups()[0])
                 w_ratio = 0.
                 h_ratio = 1. * height / h
             else: