浏览代码

[fix] hash plugin

Venca24 7 年前
父节点
当前提交
5518ae9d6d
共有 1 个文件被更改,包括 1 次插入2 次删除
  1. 1
    2
      searx/plugins/hash_plugin.py

+ 1
- 2
searx/plugins/hash_plugin.py 查看文件

42
 
42
 
43
     # select hash function
43
     # select hash function
44
     f = hashlib.new(function.lower())
44
     f = hashlib.new(function.lower())
45
-    #f = hash_function[function.lower()]
46
 
45
 
47
     # make digest from the given string
46
     # make digest from the given string
48
     f.update(string.strip())
47
     f.update(string.strip())
51
     # print result
50
     # print result
52
     search.result_container.answers.clear()
51
     search.result_container.answers.clear()
53
     search.result_container.answers.add(function + " " + gettext('hash function') + ": " + digest)
52
     search.result_container.answers.add(function + " " + gettext('hash function') + ": " + digest)
54
-    return True
53
+    return True