add max to results reach 1000

gutenberg1
Marshall 2020-09-21 17:34:05 -04:00
parent f83b22a5e3
commit d355e5e6fc
1 changed files with 2 additions and 1 deletions

View File

@ -561,7 +561,8 @@ class OpenSearch(object):
self.desktop_url = self.url_carry(host = self.desktop_host, format = None)
self.osd_url = self.qualify('/catalog/osd-books.xml')
if self.end_index==1000:
self.end_index='1000 (max)'
s = cherrypy.session
# write this late so pages can change it
s['search_terms'] = self.search_terms