From a2df4bba0a48061a7eb76f1fd15d4f907ec7d37e Mon Sep 17 00:00:00 2001 From: Ben Kurtovic Date: Sun, 1 Jan 2017 16:30:01 -0500 Subject: [PATCH] Tweak parameters. --- app.py | 3 +-- copyvios/checker.py | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/app.py b/app.py index 3df644a..2f42b2b 100755 --- a/app.py +++ b/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(): diff --git a/copyvios/checker.py b/copyvios/checker.py index 16daba7..962a37a 100644 --- a/copyvios/checker.py +++ b/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: