Ver código fonte

Move support.copyvios to copyvios

pull/24/head
Ben Kurtovic 12 anos atrás
pai
commit
80e224d768
4 arquivos alterados com 3 adições e 3 exclusões
  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 Ver arquivo

@@ -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 Ver arquivo

@@ -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 Ver arquivo

@@ -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 Ver arquivo


Carregando…
Cancelar
Salvar