Sfoglia il codice sorgente

Context cleanup.

pull/24/head
Ben Kurtovic 12 anni fa
parent
commit
9240124bde
2 ha cambiato i file con 3 aggiunte e 3 eliminazioni
  1. +1
    -1
      pages/support/copyvios/highlighter.py
  2. +2
    -2
      pages/support/sites.py

+ 1
- 1
pages/support/copyvios/highlighter.py Vedi 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 Vedi 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 = ?"


Caricamento…
Annulla
Salva