From 290f81abed1ac0d33fe20d8f942e05f0b567c534 Mon Sep 17 00:00:00 2001 From: Ben Kurtovic Date: Fri, 3 Oct 2014 16:06:07 -0500 Subject: [PATCH] Prevent -0.0 from being a confidence value. --- earwigbot/wiki/copyvios/workers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/earwigbot/wiki/copyvios/workers.py b/earwigbot/wiki/copyvios/workers.py index 99d2c86..c056594 100644 --- a/earwigbot/wiki/copyvios/workers.py +++ b/earwigbot/wiki/copyvios/workers.py @@ -290,7 +290,7 @@ class CopyvioWorkspace(object): d_size = float(delta.size) return max(conf_with_article_and_delta(self._article.size, d_size), - conf_with_delta(d_size)) + conf_with_delta(d_size), 0) def _finish_early(self): """Finish handling links prematurely (if we've hit min_confidence)."""