Browse Source

[fix] hash plugin

Venca24 7 years ago
parent
commit
1ea9438f5d
1 changed files with 1 additions and 2 deletions
  1. 1 2
      searx/plugins/hash_plugin.py

+ 1 - 2
searx/plugins/hash_plugin.py

@@ -42,7 +42,6 @@ def post_search(request, search):
 
 
     # select hash function
     # select hash function
     f = hashlib.new(function.lower())
     f = hashlib.new(function.lower())
-    #f = hash_function[function.lower()]
 
 
     # make digest from the given string
     # make digest from the given string
     f.update(string.strip())
     f.update(string.strip())
@@ -51,4 +50,4 @@ def post_search(request, search):
     # print result
     # print result
     search.result_container.answers.clear()
     search.result_container.answers.clear()
     search.result_container.answers.add(function + " " + gettext('hash function') + ": " + digest)
     search.result_container.answers.add(function + " " + gettext('hash function') + ": " + digest)
-    return True
+    return True