Selaa lähdekoodia

[fix] weight configurable via engines.cfg

asciimoo 11 vuotta sitten
vanhempi
commit
39ebe1d519
1 muutettua tiedostoa jossa 0 lisäystä ja 2 poistoa
  1. 0
    2
      searx/engines/__init__.py

+ 0
- 2
searx/engines/__init__.py Näytä tiedosto

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