Replaced self.ds.execute with db.execute in more places

This commit is contained in:
Simon Willison 2020-02-13 18:20:05 -08:00
commit f1442a8151
2 changed files with 5 additions and 10 deletions

View file

@ -300,8 +300,7 @@ class Database:
bits = [table_definition_rows[0][0] + ";"]
# Add on any indexes
index_rows = list(
await self.ds.execute(
self.name,
await self.execute(
"select sql from sqlite_master where tbl_name = :n and type='index' and sql is not null",
{"n": table},
)