From 83f55883541eaa7e2a7a08435c0573c92d38f672 Mon Sep 17 00:00:00 2001 From: Ben Kurtovic Date: Tue, 19 Jan 2016 23:33:42 -0600 Subject: [PATCH] Disable turnitin by default for now, until we confirm it works as expected. --- copyvios/checker.py | 4 ++-- templates/index.mako | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/copyvios/checker.py b/copyvios/checker.py index dab8526..90c5090 100644 --- a/copyvios/checker.py +++ b/copyvios/checker.py @@ -64,8 +64,8 @@ def _get_results(query, follow=True): conn = get_db() use_engine = 0 if query.use_engine in ("0", "false") else 1 use_links = 0 if query.use_links in ("0", "false") else 1 - use_turnitin = 0 if query.turnitin in ("0", "false") else 1 - if not use_engine and not use_links: + use_turnitin = 1 if query.turnitin in ("1", "true") else 0 + if not use_engine and not use_links and not use_turnitin: query.error = "no search method" return diff --git a/templates/index.mako b/templates/index.mako index ba45d69..0add639 100644 --- a/templates/index.mako +++ b/templates/index.mako @@ -108,13 +108,13 @@ - + - + - +