Преглед на файлове

Move support.copyvios to copyvios

pull/24/head
Ben Kurtovic преди 12 години
родител
ревизия
80e224d768
променени са 4 файла, в които са добавени 3 реда и са изтрити 3 реда
  1. +1
    -1
      pages/copyvios.mako
  2. +1
    -1
      pages/copyvios/__init__.py
  3. +1
    -1
      pages/copyvios/checker.py
  4. +0
    -0
      pages/copyvios/highlighter.py

+ 1
- 1
pages/copyvios.mako Целия файл

@@ -1,5 +1,5 @@
<%include file="/support/header.mako" args="environ=environ, title='Copyvio Detector', add_css=('copyvios.css',), add_js=('copyvios.js',)"/>\
<%namespace module="support.copyvios" import="main, highlight_delta"/>\
<%namespace module="copyvios" import="main, highlight_delta"/>\
<%namespace module="support.misc" import="urlstrip"/>\
<% lang, project, name, title, url, site, page, result = main(environ) %>
<h1>Copyvio Detector</h1>


pages/support/copyvios/__init__.py → pages/copyvios/__init__.py Целия файл

@@ -5,7 +5,7 @@ from earwigbot.bot import Bot

from .checker import get_results
from .highlighter import highlight_delta
from ..sites import get_site, get_sites
from ..support.sites import get_site, get_sites

def main(context, environ):
lang = orig_lang = project = name = title = url = None

pages/support/copyvios/checker.py → pages/copyvios/checker.py Целия файл

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

from earwigbot import exceptions

from ..misc import open_sql_connection
from ..support.misc import open_sql_connection

def get_results(bot, site, title, url, query):
page = site.get_page(title)

pages/support/copyvios/highlighter.py → pages/copyvios/highlighter.py Целия файл


Зареждане…
Отказ
Запис