diff options
| author | asciimoo <asciimoo@gmail.com> | 2014-01-18 21:55:42 +0100 |
|---|---|---|
| committer | asciimoo <asciimoo@gmail.com> | 2014-01-18 21:55:42 +0100 |
| commit | 39ebe1d5193bf62340bc101d51cab77df3c06f7e (patch) | |
| tree | a8bfe8e4c5b3574fdabd9de2e52d4d824b7af78f /searx | |
| parent | 046e1907213ac6317deec045735a0ca36ec8a136 (diff) | |
[fix] weight configurable via engines.cfg
Diffstat (limited to 'searx')
| -rw-r--r-- | searx/engines/__init__.py | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/searx/engines/__init__.py b/searx/engines/__init__.py index 36857253a..5601ceb06 100644 --- a/searx/engines/__init__.py +++ b/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: |