Browse Source

[fix] weight configurable via engines.cfg

asciimoo 11 years ago
parent
commit
39ebe1d519
1 changed files with 0 additions and 2 deletions
  1. 0 2
      searx/engines/__init__.py

+ 0 - 2
searx/engines/__init__.py

@@ -118,8 +118,6 @@ def score_results(results):
         weight = 1.0
         if hasattr(engines[res['engine']], 'weight'):
             weight = float(engines[res['engine']].weight)
-        elif res['engine'] in settings.weights:
-            weight = float(settings.weights[res['engine']])
         score = int((flat_len - i)/engines_len)*weight+1
         duplicated = False
         for new_res in results: