From: Marcin Koziej Date: Mon, 30 Jan 2012 16:15:39 +0000 (+0100) Subject: remove set_trace X-Git-Url: https://git.mdrn.pl/wolnelektury.git/commitdiff_plain/5dbe16a08d4f68377aab0013b17d7094267cf98a?ds=sidebyside;hp=-c remove set_trace --- 5dbe16a08d4f68377aab0013b17d7094267cf98a diff --git a/apps/search/index.py b/apps/search/index.py index 993c7d7ba..47583ec32 100644 --- a/apps/search/index.py +++ b/apps/search/index.py @@ -759,8 +759,6 @@ class SearchResult(object): def __cmp__(self, other): c = cmp(self.score, other.score) if c == 0: - if not hasattr(other,'published_date') or not hasattr(self, 'published_date'): - import pdb; pdb.set_trace() # this is inverted, because earlier date is better return cmp(other.published_date, self.published_date) else: