[kupfer] firefox: removed min_visit_count. ordering by visit_count makes it unnecessary



commit 2225388145739a45d49a172672f7c91e33b3c634
Author: William Friesen <wfriesen gmail com>
Date:   Sun Jan 24 13:49:06 2010 +1100

    firefox: removed min_visit_count. ordering by visit_count makes it unnecessary

 kupfer/plugin/firefox.py |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)
---
diff --git a/kupfer/plugin/firefox.py b/kupfer/plugin/firefox.py
index d6ca01a..841e89b 100644
--- a/kupfer/plugin/firefox.py
+++ b/kupfer/plugin/firefox.py
@@ -40,7 +40,6 @@ class BookmarksSource (AppLeafContentMixin, Source, FilesystemWatchMixin):
 
 	def _get_ffx3_history(self):
 		"""Query the firefox places database"""
-		min_visit_count = 100
 		max_history_items = 25
 		fpath = firefox_support.get_firefox_home_file("places.sqlite")
 		if not (fpath and os.path.isfile(fpath)):
@@ -51,10 +50,9 @@ class BookmarksSource (AppLeafContentMixin, Source, FilesystemWatchMixin):
 				c = conn.cursor()
 				c.execute("""SELECT DISTINCT(url), title
 				             FROM moz_places
-				             WHERE visit_count > ?
 				             ORDER BY visit_count DESC
 				             LIMIT ?""",
-				             (min_visit_count, max_history_items))
+				             (max_history_items,))
 				return [UrlLeaf(url, title) for url, title in c]
 		except sqlite3.Error, exc:
 			# Something is wrong with the database



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]