Fixed bug with tables with spaces in their name

The new database index page was erroring.
pull/81/head
Simon Willison 2017-11-12 12:02:45 -08:00
rodzic 59580d02da
commit b51836f846
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -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,