fnp
/
wolnelektury.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
remove set_trace
[wolnelektury.git]
/
apps
/
search
/
index.py
diff --git
a/apps/search/index.py
b/apps/search/index.py
index
993c7d7
..
47583ec
100644
(file)
--- 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:
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:
# this is inverted, because earlier date is better
return cmp(other.published_date, self.published_date)
else: