Clarifying comments

This commit is contained in:
Simon Willison 2024-11-09 09:19:16 -08:00
commit c47a2a42bc
2 changed files with 4 additions and 1 deletions

View file

@ -1969,7 +1969,7 @@ class Table(Queryable):
)
# Re-add existing indexes
for index in self.indexes:
if index.origin not in ("pk"):
if index.origin != "pk":
index_sql = self.db.execute(
"""SELECT sql FROM sqlite_master WHERE type = 'index' AND name = :index_name;""",
{"index_name": index.name},