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 View File

118
         weight = 1.0
118
         weight = 1.0
119
         if hasattr(engines[res['engine']], 'weight'):
119
         if hasattr(engines[res['engine']], 'weight'):
120
             weight = float(engines[res['engine']].weight)
120
             weight = float(engines[res['engine']].weight)
121
-        elif res['engine'] in settings.weights:
122
-            weight = float(settings.weights[res['engine']])
123
         score = int((flat_len - i)/engines_len)*weight+1
121
         score = int((flat_len - i)/engines_len)*weight+1
124
         duplicated = False
122
         duplicated = False
125
         for new_res in results:
123
         for new_res in results: