|
|
@@ -5,7 +5,7 @@ from urlparse import urlparse |
|
|
|
|
|
|
|
from earwigbot import exceptions |
|
|
|
|
|
|
|
def get_site(bot, lang, project, name, all_projects): |
|
|
|
def get_site(context, 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: |
|
|
@@ -24,7 +24,7 @@ def get_site(bot, lang, project, name, all_projects): |
|
|
|
except (exceptions.APIError, exceptions.LoginError): |
|
|
|
return None |
|
|
|
|
|
|
|
def get_sites(bot): |
|
|
|
def get_sites(context, bot): |
|
|
|
max_staleness = 60 * 60 * 24 * 7 |
|
|
|
conn = open_sql_connection(bot, "globals") |
|
|
|
query1 = "SELECT update_time FROM updates WHERE update_service = ?" |
|
|
|