mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-01 20:16:18 +02:00
...
This commit is contained in:
parent
f7e3d0374e
commit
7e1770c204
1 changed files with 2 additions and 3 deletions
|
|
@ -79,11 +79,11 @@ def build_navigation(start, num, total, url_base): # {{{
|
|||
|
||||
if start > 1:
|
||||
for t,s in [('First', 1), ('Previous', max(start-num,1))]:
|
||||
left_buttons.append(A(t, href='%s;start=%d'%(url_base, s)))
|
||||
left_buttons.append(A(t, href='%s&start=%d'%(url_base, s)))
|
||||
|
||||
if total > start + num:
|
||||
for t,s in [('Next', start+num), ('Last', total-num+1)]:
|
||||
right_buttons.append(A(t, href='%s;start=%d'%(url_base, s)))
|
||||
right_buttons.append(A(t, href='%s&start=%d'%(url_base, s)))
|
||||
|
||||
buttons = TABLE(
|
||||
TR(left_buttons, right_buttons),
|
||||
|
|
@ -224,7 +224,6 @@ def mobile(self, start='1', num='25', sort='date', search='',
|
|||
num = int(num)
|
||||
except ValueError:
|
||||
raise cherrypy.HTTPError(400, 'num: %s is not an integer'%num)
|
||||
print(111111, search)
|
||||
if not search:
|
||||
search = ''
|
||||
if isbytestring(search):
|
||||
|
|
|
|||
Loading…
Reference in a new issue