From 1af418d44474d08709eabc56d43e2dfcc8a765e6 Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Fri, 4 Feb 2011 10:18:26 +0000 Subject: [PATCH] huge bug fix --- lib/request/comparison.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/request/comparison.py b/lib/request/comparison.py index 9ffca2f11..880a334c4 100644 --- a/lib/request/comparison.py +++ b/lib/request/comparison.py @@ -64,7 +64,8 @@ def comparison(page, getRatioValue=False, pageLength=None): if ratio > 1.: ratio = 1. / ratio else: - (seqMatcher.a, seqMatcher.b) = map(lambda x: getFilteredPageContent(x, conf.textOnly), (seqMatcher.a, page)) + seqMatcher.set_seq1(getFilteredPageContent(seqMatcher.a, conf.textOnly)) + seqMatcher.set_seq2(getFilteredPageContent(page, conf.textOnly)) ratio = round(seqMatcher.quick_ratio(), 3) # If the url is stable and we did not set yet the match ratio and the