From 5a4a1f073aed83c89d7d27389616ceb63ed7cd16 Mon Sep 17 00:00:00 2001 From: Aamir Khan Date: Sat, 11 Aug 2012 15:14:20 +0530 Subject: Code cleaning misleading variable name was used --- hyperkitty/views/list.py | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'hyperkitty/views/list.py') diff --git a/hyperkitty/views/list.py b/hyperkitty/views/list.py index a0856a0..dc24ee0 100644 --- a/hyperkitty/views/list.py +++ b/hyperkitty/views/list.py @@ -76,16 +76,15 @@ def archives(request, mlist_fqdn, year=None, month=None, day=None): participants = set() cnt = 0 - for msg in threads: + for thread in threads: # Statistics on how many participants and threads this month participants.add(msg.sender) - msg.participants = STORE.get_thread_participants(list_name, - msg.thread_id) - msg.answers = STORE.get_thread_length(list_name, - msg.thread_id) - threads[cnt] = msg + thread.participants = STORE.get_thread_participants(list_name, + thread.thread_id) + thread.answers = STORE.get_thread_length(list_name, + thread.thread_id) + threads[cnt] = thread cnt = cnt + 1 - #print msg paginator = Paginator(threads, 10) pageNo = request.GET.get('page') -- cgit