diff --git a/app/templates/imageresults.html b/app/templates/imageresults.html index b1c7e6d..e4597cd 100644 --- a/app/templates/imageresults.html +++ b/app/templates/imageresults.html @@ -56,9 +56,9 @@ - {% for i in range(length // 4) %} + {% for i in range((length // 4) + 1) %} - {% for j in range(4) %} + {% for j in range([length - (i*4), 4]|min) %}