[svn r1540] Correction for zero-lenght results in bookmark search. xbelweb
authorfabien
Wed, 24 Sep 2003 14:28:33 -0400
branchxbelweb
changeset 6 da757ef67c69
parent 5 d3748aa40612
child 7 7cc3ab1c160b
[svn r1540] Correction for zero-lenght results in bookmark search.
index.py
--- 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)