not doing "basic" filtering in default cases because of a bug reported by Kazim

This commit is contained in:
Miroslav Stampar 2011-02-18 07:38:13 +00:00
parent 6cdf08b81c
commit 3badf92ceb

View File

@ -64,8 +64,8 @@ def comparison(page, getRatioValue=False, pageLength=None):
if ratio > 1.:
ratio = 1. / ratio
else:
seqMatcher.set_seq1(getFilteredPageContent(seqMatcher.a, conf.textOnly))
seqMatcher.set_seq2(getFilteredPageContent(page, conf.textOnly))
seqMatcher.set_seq1(getFilteredPageContent(seqMatcher.a, True) if conf.textOnly else seqMatcher.a)
seqMatcher.set_seq2(getFilteredPageContent(page, True) if conf.textOnly else page)
ratio = round(seqMatcher.quick_ratio(), 3)
# If the url is stable and we did not set yet the match ratio and the