From 942a7fe3fb796e42ce82790c5b569a1391188d09 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Wed, 15 Feb 2012 16:06:35 +0530 Subject: [PATCH] max --- pandora/itemlist/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandora/itemlist/models.py b/pandora/itemlist/models.py index 79020bc3..5bf33b1c 100644 --- a/pandora/itemlist/models.py +++ b/pandora/itemlist/models.py @@ -134,7 +134,7 @@ class List(models.Model): items = self.get_items(self.user).filter(rendered=True) if items.count(): poster_frames = [] - for i in range(0, items.count(), min(1, int(items.count()/4))): + for i in range(0, items.count(), max(1, int(items.count()/4))): poster_frames.append({ 'item': items[int(i)].itemId, 'position': items[int(i)].poster_frame