branch | xbelweb |
changeset 6 | da757ef67c69 |
parent 4 | 20c995f13f63 |
child 9 | 896b7c6de627 |
--- a/index.py Wed Sep 24 13:57:18 2003 -0400 +++ b/index.py Wed Sep 24 14:28:33 2003 -0400 @@ -56,7 +56,8 @@ else: bookmarks = db.select_bookmarks(selection) keywords = set_selection(keywords, selection) - bookmarks = db.get_bookmarks(map(lambda x: x[0], bookmarks)) + if len(bookmarks) > 0: + bookmarks = db.get_bookmarks(map(lambda x: x[0], bookmarks)) bookmarks = map(lambda bk: bk.dict(), bookmarks) curl = get_curl(); main(bookmarks, keywords, curl)