on master help sign in
[fix] weight configurable via engines.cfg
commit39ebe1d5193bf62340bc101d51cab77df3c06f7e authorasciimoo <asciimoo@gmail.com> dateSat 18 Jan 2014, 21:55 (13 years ago) parent046e190
1 file changed−2
searx/engines/__init__.py−2
searx/engines/__init__.py−2
@@ -118,8 +118,6 @@ def score_results(results):
118118 weight = 1.0
119119 if hasattr(engines[res['engine']], 'weight'):
120120 weight = float(engines[res['engine']].weight)
121− elif res['engine'] in settings.weights:
122− weight = float(settings.weights[res['engine']])
123121 score = int((flat_len - i)/engines_len)*weight+1
124122 duplicated = False
125123 for new_res in results: