fixing empty slideshow for is_preview

pull/1/head
Andromeda Yelton 2012-03-13 16:26:57 -04:00
parent d0811f4d27
commit 201ff7b38f
1 changed files with 1 additions and 1 deletions

View File

@ -64,7 +64,7 @@ def slideshow(max):
if is_preview:
# on the preview site there are no active campaigns, so we should show most-wished books instead
worklist = models.Work.objects.order_by('-num_wishes')[:count]
worklist = models.Work.objects.order_by('-num_wishes')[:max]
else:
worklist = []
while i<max and count>0: