# HG changeset patch # User fabien # Date 1067032317 14400 # Node ID 57932e991854dcf20d36acc269a7ce1e64485fbe # Parent 9cde0ea6f41187135ef620e2e21ee008201b217a [svn r1606] Problem with zero bookmarks. Still some problem on keywords count. diff -r 9cde0ea6f411 -r 57932e991854 lib/folders.py --- a/lib/folders.py Fri Oct 24 17:24:19 2003 -0400 +++ b/lib/folders.py Fri Oct 24 17:51:57 2003 -0400 @@ -53,6 +53,7 @@ keywords.append(keyword) for child in children: child['count'] = len(db.select_bookmarks(selection + [child['keyword']])) - bookmarks = db.get_bookmarks(map(lambda bk: bk[0], bookmarks)) - bookmarks = map(lambda bk: bk.dict(), bookmarks) + if len(bookmarks) <> 0: + bookmarks = db.get_bookmarks(map(lambda bk: bk[0], bookmarks)) + bookmarks = map(lambda bk: bk.dict(), bookmarks) output(prefs, parents.pop(), parents, children, bookmarks, keywords)