Skip to content

Commit

Permalink
Order by visit_count, typed_count, last_visit_time
Browse files Browse the repository at this point in the history
Weight frequency above recency. This might not be ideal, but
much-visited sites are usually what you're looking for.
  • Loading branch information
Thomas Upton committed Dec 3, 2015
1 parent 1e902e4 commit 08debcf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion chrome.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
HISTORY_DB = 'History'
HISTORY_CACHE = os.path.join(alfred.work(True), HISTORY_DB)
HISTORY_QUERY = u"""
SELECT id,title,url FROM urls WHERE (title LIKE ? OR url LIKE ?) ORDER BY last_visit_time DESC
SELECT id,title,url FROM urls WHERE (title LIKE ? OR url LIKE ?) ORDER BY visit_count DESC, typed_count DESC, last_visit_time DESC
"""

class ErrorItem(alfred.Item):
Expand Down

0 comments on commit 08debcf

Please sign in to comment.