From b51836f8463ef65bc947f0a7b6e60167cb7154cf Mon Sep 17 00:00:00 2001 From: Simon Willison Date: Sun, 12 Nov 2017 12:02:45 -0800 Subject: [PATCH] Fixed bug with tables with spaces in their name The new database index page was erroring. --- datasette/app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datasette/app.py b/datasette/app.py index 8852b036..53ac6329 100644 --- a/datasette/app.py +++ b/datasette/app.py @@ -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,