Permalink
Browse files

fixed FTS5 initialization

  • Loading branch information...
Fazal Majid
Fazal Majid committed Feb 19, 2018
1 parent 4150aec commit a795a1e15484fa4404d43595226bf19854b62a47
Showing with 3 additions and 1 deletion.
  1. +3 −1 tembozapp/dbop.py
View
@@ -322,7 +322,9 @@ def fts(d, c):
global fts_enabled
sql = c.execute("select sql from sqlite_master where name='search'")
status = c.fetchone()
if not status:
if status:
fts_enabled = True
else:
try:
c.execute("""create virtual table if not exists search
using fts5(content="fm_items", item_title, item_content,

0 comments on commit a795a1e

Please sign in to comment.