diff options
author | Pierre-Yves Chibon <pingou@pingoured.fr> | 2012-03-31 16:54:27 +0200 |
---|---|---|
committer | Pierre-Yves Chibon <pingou@pingoured.fr> | 2012-03-31 16:54:27 +0200 |
commit | adbe3b3cdb7d30974d8dc4995a0d0e18e5615cad (patch) | |
tree | 923277c7248e3895489194386d756b649683e618 /lib/mongo.py | |
parent | 02b265f082974923a7739b8d42fd41fe60c2ada2 (diff) | |
download | hyperkitty-adbe3b3cdb7d30974d8dc4995a0d0e18e5615cad.tar.gz hyperkitty-adbe3b3cdb7d30974d8dc4995a0d0e18e5615cad.tar.xz hyperkitty-adbe3b3cdb7d30974d8dc4995a0d0e18e5615cad.zip |
Remove the ordering for the time being, we should fix that at the database level
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 = [] |