diff options
Diffstat (limited to 'lib/mongo.py')
-rw-r--r-- | lib/mongo.py | 5 |
1 files changed, 3 insertions, 2 deletions
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 = [] |