Fix library check in and search bug.
authorMarc Burns <m4burns@csclub.uwaterloo.ca>
Fri, 4 Mar 2011 21:54:48 +0000 (16:54 -0500)
committerMarc Burns <m4burns@csclub.uwaterloo.ca>
Fri, 4 Mar 2011 21:54:48 +0000 (16:54 -0500)
ceo/urwid/library.py
debian/changelog

index 40e3690..2aca3aa 100644 (file)
@@ -284,7 +284,7 @@ class SearchPage(urwid.WidgetWrap):
             for s in st:
                 books.append(s.book)
 
-        if not books.count():
+        if ((type(books) != type([])) and books.count() == 0) or books == []:
             widgets.append(urwid.Text("No results. Hit ESC to return to search page."))
             widgets.append(urwid.Divider())
 
index fa059d0..5ceeca5 100644 (file)
@@ -1,3 +1,9 @@
+ceo (0.5.11) stable; urgency=low
+
+  * Fix library check in and search bug introduced in 0.5.9+nmu1.
+
+ -- Marc Burns <m4burns@csclub.uwaterloo.ca>  Fri, 04 Mar 2011 16:52:32 -0500
+
 ceo (0.5.10) stable; urgency=low
 
   * Fix squeeze build warnings