From e15c223b37b7cb2835d37f48be1b8eb1f44c2e55 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Mon, 29 Aug 2011 17:43:19 -0600 Subject: [PATCH] ... --- src/calibre/library/server/ajax.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/calibre/library/server/ajax.py b/src/calibre/library/server/ajax.py index 95e704b9b2..d475ebe96b 100644 --- a/src/calibre/library/server/ajax.py +++ b/src/calibre/library/server/ajax.py @@ -410,6 +410,9 @@ class AjaxServer(object): @Endpoint() def ajax_books_in(self, category, item, sort='title', num=25, offset=0, sort_order='asc'): + ''' + Return the books (as list of ids) present in the specified category. + ''' try: dname, ditem = map(decode_name, (category, item)) except: @@ -471,6 +474,10 @@ class AjaxServer(object): @Endpoint() def ajax_search(self, query='', sort='title', offset=0, num=25, sort_order='asc'): + ''' + Return the books (as list of ids) matching the specified search query. + ''' + try: num = int(num) except: