From 9240124bde69ce14281bca8bcb47ce8e5b97fe28 Mon Sep 17 00:00:00 2001 From: Ben Kurtovic Date: Sun, 22 Jul 2012 02:27:03 -0400 Subject: [PATCH] Context cleanup. --- pages/support/copyvios/highlighter.py | 2 +- pages/support/sites.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pages/support/copyvios/highlighter.py b/pages/support/copyvios/highlighter.py index 33d78e0..0c0b17e 100644 --- a/pages/support/copyvios/highlighter.py +++ b/pages/support/copyvios/highlighter.py @@ -2,7 +2,7 @@ from re import sub, UNICODE -def highlight_delta(chain, delta): +def highlight_delta(context, chain, delta): processed = [] prev_prev = prev = chain.START i = 0 diff --git a/pages/support/sites.py b/pages/support/sites.py index 75896da..158a355 100644 --- a/pages/support/sites.py +++ b/pages/support/sites.py @@ -7,7 +7,7 @@ from earwigbot import exceptions from .misc import open_sql_connection -def get_site(context, bot, lang, project, name, all_projects): +def get_site(bot, lang, project, name, all_projects): if project not in [proj[0] for proj in all_projects]: return None if project == "wikimedia" and name: # Special sites: @@ -26,7 +26,7 @@ def get_site(context, bot, lang, project, name, all_projects): except (exceptions.APIError, exceptions.LoginError): return None -def get_sites(context, bot): +def get_sites(bot): max_staleness = 60 * 60 * 24 * 7 conn = open_sql_connection(bot, "globals") query1 = "SELECT update_time FROM updates WHERE update_service = ?"