Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 39ebe1d5 authored by asciimoo's avatar asciimoo
Browse files

[fix] weight configurable via engines.cfg

parent 046e1907
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -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: