From 4975d6f9319ccd65f5d90a24de9dd5394da0d847 Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Sun, 18 Mar 2012 15:26:38 +0100 Subject: Replace Thread-ID by ThreadID so that we can use it in the templates --- views/pages.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'views/pages.py') diff --git a/views/pages.py b/views/pages.py index 75a7e7c..1babd7b 100644 --- a/views/pages.py +++ b/views/pages.py @@ -82,9 +82,9 @@ def archives(request, mlist_fqdn, year=None, month=None): # Statistics on how many participants and threads this month participants.add(msg['From']) msg.participants = mongo.get_thread_participants(list_name, - msg['Thread-ID']) + msg['ThreadID']) msg.answers = mongo.get_thread_length(list_name, - msg['Thread-ID']) + msg['ThreadID']) threads[cnt] = msg cnt = cnt + 1 @@ -125,9 +125,9 @@ def list(request, mlist_fqdn=None): # Statistics on how many participants and threads this month participants.add(msg['From']) msg.participants = mongo.get_thread_participants(list_name, - msg['Thread-ID']) + msg['ThreadID']) msg.answers = mongo.get_thread_length(list_name, - msg['Thread-ID']) + msg['ThreadID']) threads[cnt] = msg cnt = cnt + 1 @@ -176,11 +176,11 @@ def _search_results_page(request, mlist_fqdn, query_string, search_type): msg = Bunch(msg) # Statistics on how many participants and threads this month participants.add(msg['From']) - if 'Thread-ID' in msg: + if 'ThreadID' in msg: msg.participants = mongo.get_thread_participants(list_name, - msg['Thread-ID']) + msg['ThreadID']) msg.answers = mongo.get_thread_length(list_name, - msg['Thread-ID']) + msg['ThreadID']) else: msg.participants = 0 msg.answers = 0 -- cgit