[kupfer] learn: Make Favorites bonus only +7 rank points
- From: Ulrik Sverdrup <usverdrup src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [kupfer] learn: Make Favorites bonus only +7 rank points
- Date: Tue, 12 Jan 2010 23:13:19 +0000 (UTC)
commit aceee0cdef334691b4ff47fb9deb8acc5bd59094
Author: Ulrik Sverdrup <ulrik sverdrup gmail com>
Date: Tue Jan 12 18:43:38 2010 +0100
learn: Make Favorites bonus only +7 rank points
As an experiment. Favorites must be boosted, but not too much so they
are before items that textually much match better.
kupfer/core/learn.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/kupfer/core/learn.py b/kupfer/core/learn.py
index 79034ca..dd30303 100644
--- a/kupfer/core/learn.py
+++ b/kupfer/core/learn.py
@@ -81,7 +81,7 @@ def get_record_score(obj, key=u""):
bonus score is given for @key matches
"""
name = repr(obj)
- fav = 20 * (name in _favorites)
+ fav = 7 * (name in _favorites)
if name not in _register:
return fav
mns = _register[name]
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]