Pārlūkot izejas kodu

Forgot to give process_time param to CopyvioCheckResult.

tags/v0.2
Ben Kurtovic pirms 12 gadiem
vecāks
revīzija
25d75c5d11
1 mainītis faili ar 2 papildinājumiem un 1 dzēšanām
  1. +2
    -1
      earwigbot/wiki/copyvios/__init__.py

+ 2
- 1
earwigbot/wiki/copyvios/__init__.py Parādīt failu

@@ -158,7 +158,8 @@ class CopyvioMixIn(object):

if article_chain.size() < 20: # Auto-fail very small articles
return CopyvioCheckResult(False, best_confidence, best_match,
num_queries, article_chain, best_chains)
num_queries, 0, article_chain,
best_chains)

while (chunks and best_confidence < min_confidence and
(max_queries < 0 or num_queries < max_queries)):


Notiek ielāde…
Atcelt
Saglabāt