From 0c5bd1acd653be00442fa4beb3c8e4dbf5731c72 Mon Sep 17 00:00:00 2001 From: Martin Trigaux Date: Wed, 8 May 2013 15:32:24 +0200 Subject: [PATCH] [IMP] mail: clean code bzr revid: mat@openerp.com-20130508133224-y0mtl3421yfoka2p --- addons/mail/mail_thread.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/addons/mail/mail_thread.py b/addons/mail/mail_thread.py index 573e0cffd1a..ab7fb4afeb4 100644 --- a/addons/mail/mail_thread.py +++ b/addons/mail/mail_thread.py @@ -1385,7 +1385,6 @@ class mail_thread(osv.AbstractModel): removed_suggested_threads = [] thread_ids = self.search(cr, uid, [('id', 'not in', removed_suggested_threads), ('message_is_follower', '=', False)], context=context) - print(thread_ids) for thread in self.browse(cr, uid, thread_ids, context=context): data = { 'id': thread.id, @@ -1393,6 +1392,5 @@ class mail_thread(osv.AbstractModel): 'name': thread.name, 'image_small': thread.image_small } - print(data['id'], data['name'], data['popularity']) threads.append(data) return sorted(threads, key=lambda x: (x['popularity'], x['id']), reverse=True)[:3] \ No newline at end of file