?_search=x now works directly against fts virtual table

Closes #135
pull/104/head
Simon Willison 2017-11-19 22:18:07 -08:00
rodzic 771b0ee347
commit 0331666e34
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: FBB38AFE227189DB
1 zmienionych plików z 5 dodań i 2 usunięć

Wyświetl plik

@ -221,8 +221,11 @@ def detect_fts_sql(table):
return r'''
select name from sqlite_master
where rootpage = 0
and sql like '%VIRTUAL TABLE%USING FTS%content="{}"%';
'''.format(table)
and (
sql like '%VIRTUAL TABLE%USING FTS%content="{table}"%'
or tbl_name = "{table}"
)
'''.format(table=table)
class Filter: