瀏覽代碼

Relative imports

pull/24/head
Ben Kurtovic 12 年之前
父節點
當前提交
bed02a87f0
共有 2 個文件被更改,包括 4 次插入0 次删除
  1. +2
    -0
      pages/support/copyvios/checker.py
  2. +2
    -0
      pages/support/sites.py

+ 2
- 0
pages/support/copyvios/checker.py 查看文件

@@ -6,6 +6,8 @@ from time import time

from earwigbot import exceptions

from ..misc import open_sql_connection

def get_results(context, bot, lang, project, name, all_projects, title, url, query):
site = get_site(bot, lang, project, name, all_projects)
if not site:


+ 2
- 0
pages/support/sites.py 查看文件

@@ -5,6 +5,8 @@ from urlparse import urlparse

from earwigbot import exceptions

from .misc import open_sql_connection

def get_site(context, bot, lang, project, name, all_projects):
if project not in [proj[0] for proj in all_projects]:
return None


Loading…
取消
儲存