浏览代码

Minor integer division fix.

tags/v0.1^2
Ben Kurtovic 12 年前
父节点
当前提交
6009c050f9
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. +1
    -1
      earwigbot/wiki/copyright.py

+ 1
- 1
earwigbot/wiki/copyright.py 查看文件

@@ -200,7 +200,7 @@ class CopyrightMixin(object):

source = _MarkovChain(self._copyvio_strip_html(html))
delta = _MarkovChainIntersection(article, source)
return delta.size() / article.size(), (source, delta)
return float(delta.size()) / article.size(), (source, delta)

def copyvio_check(self, engine, credentials, min_confidence=0.5,
max_queries=-1, interquery_sleep=1, force=False):


正在加载...
取消
保存