Fixed bug with tables with spaces in their name

The new database index page was erroring.
This commit is contained in:
Simon Willison 2017-11-12 12:02:45 -08:00
commit b51836f846

View file

@ -250,7 +250,7 @@ class DatabaseView(BaseView):
for table_name, table_rows in table_metadata.items():
rows = await self.execute(
name,
'PRAGMA table_info({});'.format(table_name)
'PRAGMA table_info([{}]);'.format(table_name)
)
tables.append({
'name': table_name,