From: Guillaume Pellerin Date: Wed, 10 Apr 2013 14:10:23 +0000 (+0200) Subject: fix home items X-Git-Tag: 1.4.5~2^2~4^2~2^2~15 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=1f189a7a1511cccbf22d1c43a6c7d65b2841f1f6;p=telemeta.git fix home items --- diff --git a/telemeta/views/home.py b/telemeta/views/home.py index c0b0051d..380ec269 100644 --- a/telemeta/views/home.py +++ b/telemeta/views/home.py @@ -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, {