From adbe3b3cdb7d30974d8dc4995a0d0e18e5615cad Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Sat, 31 Mar 2012 16:54:27 +0200 Subject: Remove the ordering for the time being, we should fix that at the database level --- lib/mongo.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'lib/mongo.py') diff --git a/lib/mongo.py b/lib/mongo.py index 275f740..a6c6be4 100644 --- a/lib/mongo.py +++ b/lib/mongo.py @@ -45,8 +45,9 @@ def _tree_to_list(tree, mailid, level, thread_list): def get_thread_list(table, threadid): db = connection[table] - thread = list(db.mails.find({'ThreadID': int(threadid)}, - sort=[('Date', pymongo.ASCENDING)])) + # TODO: Find a way to order the email, ordering by date doesn't work + # or we should fix the way we enter the date in the database... :-/ + thread = list(db.mails.find({'ThreadID': int(threadid)})) tree = _build_thread(thread) thread_list = [] -- cgit