From 5242d31a93a7534ac53338808fa87039572d9383 Mon Sep 17 00:00:00 2001 From: Ben Kurtovic Date: Thu, 4 Sep 2014 23:26:49 -0500 Subject: [PATCH] Whoops. --- copyvios/checker.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/copyvios/checker.py b/copyvios/checker.py index f6efe9e..be1230b 100644 --- a/copyvios/checker.py +++ b/copyvios/checker.py @@ -143,7 +143,7 @@ def _get_cached_results(page, conn, mode): if skipped: # Should be impossible: data must be bad; run a new check return None result = page.copyvio_compare(url, min_confidence=T_SUSPECT, max_time=30) - if result.confidence - confidence < 0.0001: + if abs(result.confidence - confidence) < 0.0001: return None for url, confidence, skipped in data: