Skip to content

Commit

Permalink
Fixed broken tests, refs #10
Browse files Browse the repository at this point in the history
  • Loading branch information
simonw committed Sep 11, 2021
1 parent c428314 commit 819efde
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions datasette_app_support/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ async def inner():

def write_plugins(conn):
db = sqlite_utils.Database(conn)
for table in ("plugins", "plugins_fts"):
db[table].drop(ignore=True)
db["plugins"].insert_all(plugins, pk="full_name")
db["plugins"].enable_fts(["full_name", "name", "description"])

Expand Down

0 comments on commit 819efde

Please sign in to comment.