]> git.parisson.com Git - telemeta.git/commitdiff
fix home items
authorGuillaume Pellerin <yomguy@parisson.com>
Wed, 10 Apr 2013 14:10:23 +0000 (16:10 +0200)
committerGuillaume Pellerin <yomguy@parisson.com>
Wed, 10 Apr 2013 14:10:23 +0000 (16:10 +0200)
telemeta/views/home.py

index c0b0051d67174c724a6afa91c0117eef98d5bd0d..380ec2691f14ae72507c498eb7c18c534bdd96c4 100644 (file)
@@ -65,7 +65,7 @@ class HomeView(object):
         elif count > 2:
             indexes = random.sample(range(count-1), N)
             sound_pub_item = sound_items[indexes[0]]
-            sound_pub_items = [sound_items[indexes[i]] for i in range(0, N-1)]
+            sound_pub_items = [sound_items[indexes[i]] for i in range(1, N)]
 
         revisions = get_revisions(25)
         context = RequestContext(request, {