diff options
author | Pierre-Yves Chibon <pingou@pingoured.fr> | 2012-03-18 15:26:38 +0100 |
---|---|---|
committer | Pierre-Yves Chibon <pingou@pingoured.fr> | 2012-03-18 15:26:38 +0100 |
commit | 4975d6f9319ccd65f5d90a24de9dd5394da0d847 (patch) | |
tree | 80ac57ce35cdf9f155508a924a0602338c69b8ca /views/pages.py | |
parent | 5b0e4f783a405d1532004a47e6cf4984769ebb5e (diff) | |
download | hyperkitty-4975d6f9319ccd65f5d90a24de9dd5394da0d847.tar.gz hyperkitty-4975d6f9319ccd65f5d90a24de9dd5394da0d847.tar.xz hyperkitty-4975d6f9319ccd65f5d90a24de9dd5394da0d847.zip |
Replace Thread-ID by ThreadID so that we can use it in the templates
Diffstat (limited to 'views/pages.py')
-rw-r--r-- | views/pages.py | 14 |
1 files changed, 7 insertions, 7 deletions
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 |