Browse Source

Context cleanup.

pull/24/head
Ben Kurtovic 12 years ago
parent
commit
9240124bde
2 changed files with 3 additions and 3 deletions
  1. +1
    -1
      pages/support/copyvios/highlighter.py
  2. +2
    -2
      pages/support/sites.py

+ 1
- 1
pages/support/copyvios/highlighter.py View File

@@ -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


+ 2
- 2
pages/support/sites.py View File

@@ -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 = ?"


Loading…
Cancel
Save