Browse Source

Relative imports

pull/24/head
Ben Kurtovic 12 years ago
parent
commit
bed02a87f0
2 changed files with 4 additions and 0 deletions
  1. +2
    -0
      pages/support/copyvios/checker.py
  2. +2
    -0
      pages/support/sites.py

+ 2
- 0
pages/support/copyvios/checker.py View File

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

@@ -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…
Cancel
Save