Browse Source

Tweak parameters.

copyvios-ng
Ben Kurtovic 8 years ago
parent
commit
a2df4bba0a
2 changed files with 2 additions and 3 deletions
  1. +1
    -2
      app.py
  2. +1
    -1
      copyvios/checker.py

+ 1
- 2
app.py View File

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


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


@app.before_request @app.before_request
def prepare_request(): def prepare_request():


+ 1
- 1
copyvios/checker.py View File

@@ -81,7 +81,7 @@ def _get_results(query, follow=True):
if not query.result: if not query.result:
try: try:
query.result = page.copyvio_check( 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, no_searches=not use_engine, no_links=not use_links,
short_circuit=not query.noskip) short_circuit=not query.noskip)
except exceptions.SearchQueryError as exc: except exceptions.SearchQueryError as exc:


Loading…
Cancel
Save