mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
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
This commit is contained in:
parent
1592fd0419
commit
2c625e31ed
1 changed files with 1 additions and 0 deletions
|
|
@ -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 = [
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue