Quellcode durchsuchen

Move support.copyvios to copyvios

pull/24/head
Ben Kurtovic vor 12 Jahren
Ursprung
Commit
80e224d768
4 geänderte Dateien mit 3 neuen und 3 gelöschten Zeilen
  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 Datei anzeigen

@@ -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 Datei anzeigen

@@ -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 Datei anzeigen

@@ -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 Datei anzeigen


Laden…
Abbrechen
Speichern