Use select_column.

This commit is contained in:
voussoir 2022-11-07 18:44:21 -08:00
parent 11706cc1c7
commit 87e53f85b8

View file

@ -32,7 +32,7 @@ class Migrator:
self.photodb = photodb self.photodb = photodb
query = 'SELECT name FROM sqlite_master WHERE type == "table"' query = 'SELECT name FROM sqlite_master WHERE type == "table"'
table_names = list(self.photodb.select(query)) table_names = list(self.photodb.select_column(query))
self.tables = {name: {} for name in table_names} self.tables = {name: {} for name in table_names}
# The user may be adding entirely new tables derived from the data of # The user may be adding entirely new tables derived from the data of