Sfoglia il codice sorgente

Move support.copyvios to copyvios

pull/24/head
Ben Kurtovic 12 anni fa
parent
commit
80e224d768
4 ha cambiato i file con 3 aggiunte e 3 eliminazioni
  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 Vedi File

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

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

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


Caricamento…
Annulla
Salva