replace triple quote with double

random_search
autocat 2020-08-25 08:46:44 -04:00
parent 4076a16493
commit 78927e4741
1 changed files with 1 additions and 2 deletions

View File

@ -35,8 +35,7 @@ class BookSearchPage (SearchPage):
os.f_format_icon = os.format_icon_titles os.f_format_icon = os.format_icon_titles
if os.sort_order == 'random': if os.sort_order == 'random':
sql.where.append (""" sql.where.append ("pk in (select pk from books order by random() limit 20)")
pk in (select pk from books order by random() limit 20)""")
if len (os.query): if len (os.query):
sql.fulltext ('books.tsvec', os.query) sql.fulltext ('books.tsvec', os.query)
os.title = _("Books: {title}").format (title = os.query) os.title = _("Books: {title}").format (title = os.query)