Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

I like this frecency algorithm better. comments welcome

  • Loading branch information...
commit 44a86225d1aa68bba952337d10da2d451796dac3 1 parent 8bc0199
@rupa authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 j.py
View
4 j.py
@@ -73,13 +73,13 @@ def frecent(self):
r = []
for i in self.m:
if i[1] <= 3600:
- r.append((i[0]*10, i[2]))
+ r.append((i[0]*4, i[2]))
elif i[1] <= 86400:
r.append((i[0]*2, i[2]))
elif i[1] <= 604800:
r.append((i[0]/2, i[2]))
else:
- r.append((i[0]/10, i[2]))
+ r.append((i[0]/4, i[2]))
return sorted(r)
def matches(self, args, nocase=False):
Please sign in to comment.
Something went wrong with that request. Please try again.