forked from 0x2620/pandora
max
This commit is contained in:
parent
e585a0ddff
commit
942a7fe3fb
1 changed files with 1 additions and 1 deletions
|
@ -134,7 +134,7 @@ class List(models.Model):
|
||||||
items = self.get_items(self.user).filter(rendered=True)
|
items = self.get_items(self.user).filter(rendered=True)
|
||||||
if items.count():
|
if items.count():
|
||||||
poster_frames = []
|
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({
|
poster_frames.append({
|
||||||
'item': items[int(i)].itemId,
|
'item': items[int(i)].itemId,
|
||||||
'position': items[int(i)].poster_frame
|
'position': items[int(i)].poster_frame
|
||||||
|
|
Loading…
Reference in a new issue