瀏覽代碼

Tweak parameters.

copyvios-ng
Ben Kurtovic 8 年之前
父節點
當前提交
a2df4bba0a
共有 2 個檔案被更改,包括 2 行新增3 行删除
  1. +1
    -2
      app.py
  2. +1
    -1
      copyvios/checker.py

+ 1
- 2
app.py 查看文件

@@ -52,8 +52,7 @@ def setup_app():
cache.background_data = {}
cache.last_background_updates = {}

getLogger("earwigbot.wiki.cvworker").setLevel(INFO)
globalize()
globalize(num_workers=12)

@app.before_request
def prepare_request():


+ 1
- 1
copyvios/checker.py 查看文件

@@ -81,7 +81,7 @@ def _get_results(query, follow=True):
if not query.result:
try:
query.result = page.copyvio_check(
min_confidence=T_SUSPECT, max_queries=10, max_time=45,
min_confidence=T_SUSPECT, max_queries=8, max_time=45,
no_searches=not use_engine, no_links=not use_links,
short_circuit=not query.noskip)
except exceptions.SearchQueryError as exc:


Loading…
取消
儲存