From f94a67e0e3f32bd4d355197f56add6e2f035fd70 Mon Sep 17 00:00:00 2001 From: Ben Kurtovic Date: Mon, 1 Sep 2014 01:17:23 -0500 Subject: [PATCH] Define num_queries in the proper place. --- earwigbot/wiki/copyvios/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/earwigbot/wiki/copyvios/__init__.py b/earwigbot/wiki/copyvios/__init__.py index a20a222..c6ebfc6 100644 --- a/earwigbot/wiki/copyvios/__init__.py +++ b/earwigbot/wiki/copyvios/__init__.py @@ -130,9 +130,9 @@ class CopyvioMixIn(object): if not no_links: workspace.enqueue(parser.get_links(), exclude) + num_queries = 0 if not no_searches: chunks = parser.chunk(self._search_config["nltk_dir"], max_queries) - num_queries = 0 for chunk in chunks: if workspace.best.confidence >= min_confidence: break