From 2c625e31ed018f929223918240603bf2a80e665c Mon Sep 17 00:00:00 2001 From: Simon Willison Date: Fri, 27 Oct 2017 00:16:18 -0700 Subject: [PATCH] Fixed bug on Row page with tables containing spaces We were attempting to run this SQL: select * from "Order%20Details" where ... On this page: http://0.0.0.0:8877/northwind-40d049b/Order%20Details/10250,41 --- datasite/app.py | 1 + 1 file changed, 1 insertion(+) diff --git a/datasite/app.py b/datasite/app.py index 52ecea19..c7a8cc55 100644 --- a/datasite/app.py +++ b/datasite/app.py @@ -259,6 +259,7 @@ class RowView(BaseView): def data(self, request, name, hash, table, pk_path): conn = get_conn(name) + table = urllib.parse.unquote_plus(table) pk_values = compound_pks_from_path(pk_path) pks = pks_for_table(conn, table) wheres = [