소스 검색

Remove unnecessary key attribute of sources.

tags/v0.2
Ben Kurtovic 12 년 전
부모
커밋
f8f4669460
2개의 변경된 파일과 2개의 추가작업 그리고 3개의 파일을 삭제
  1. +1
    -2
      earwigbot/wiki/copyvios/result.py
  2. +1
    -1
      earwigbot/wiki/copyvios/workers.py

+ 1
- 2
earwigbot/wiki/copyvios/result.py 파일 보기

@@ -42,10 +42,9 @@ class CopyvioSource(object):
- :py:attr:`skipped`: whether this URL was skipped during the check
"""

def __init__(self, workspace, url, key, headers=None, timeout=5):
def __init__(self, workspace, url, headers=None, timeout=5):
self.workspace = workspace
self.url = url
self.key = key
self.headers = headers
self.timeout = timeout
self.confidence = 0.0


+ 1
- 1
earwigbot/wiki/copyvios/workers.py 파일 보기

@@ -323,7 +323,7 @@ class CopyvioWorkspace(object):
from urlparse import urlparse
key = u".".join(urlparse(url).netloc.split(".")[-2:])

source = CopyvioSource(url=url, key=key, **self._source_args)
source = CopyvioSource(url=url, **self._source_args)
self.sources.append(source)
logmsg = u"enqueue(): {0} {1} -> {2}"
if key in self._queues.sites:


불러오는 중...
취소
저장