From ba785919532895ccc4b293dc3676b05349f46979 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Thu, 4 Aug 2011 19:53:43 +0200 Subject: [PATCH] fix frames --- pandora/item/models.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pandora/item/models.py b/pandora/item/models.py index ab15c91..7597cfa 100644 --- a/pandora/item/models.py +++ b/pandora/item/models.py @@ -349,13 +349,13 @@ class Item(models.Model): def get_frames(self): frames = [] - frames = self.poster_frames() - if frames: + pframes = self.poster_frames() + if pframes: pos = self.poster_frame if pos < 0: pos = 0 p = 0 - for f in frames: + for f in pframes: frames.append({ 'index': p, 'position': f['position'],