Browse Source

Define num_queries in the proper place.

tags/v0.2
Ben Kurtovic 10 years ago
parent
commit
f94a67e0e3
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      earwigbot/wiki/copyvios/__init__.py

+ 1
- 1
earwigbot/wiki/copyvios/__init__.py View File

@@ -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


Loading…
Cancel
Save