mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
Correct facet links for columns with a leading underscore, closes #1506
This commit is contained in:
parent
c92ab51b3c
commit
c306b696de
8 changed files with 179 additions and 43 deletions
|
|
@ -437,7 +437,7 @@ def test_hook_register_output_renderer_all_parameters(app_client):
|
|||
"on_earth",
|
||||
"state",
|
||||
"city_id",
|
||||
"neighborhood",
|
||||
"_neighborhood",
|
||||
"tags",
|
||||
"complex_array",
|
||||
"distinct_some_null",
|
||||
|
|
@ -459,7 +459,7 @@ def test_hook_register_output_renderer_all_parameters(app_client):
|
|||
"<sqlite3.Row object at 0xXXX>",
|
||||
"<sqlite3.Row object at 0xXXX>",
|
||||
],
|
||||
"sql": "select pk, created, planet_int, on_earth, state, city_id, neighborhood, tags, complex_array, distinct_some_null from facetable order by pk limit 51",
|
||||
"sql": "select pk, created, planet_int, on_earth, state, city_id, _neighborhood, tags, complex_array, distinct_some_null from facetable order by pk limit 51",
|
||||
"query_name": None,
|
||||
"database": "fixtures",
|
||||
"table": "facetable",
|
||||
|
|
@ -526,12 +526,12 @@ def test_hook_register_output_renderer_can_render(app_client):
|
|||
"on_earth",
|
||||
"state",
|
||||
"city_id",
|
||||
"neighborhood",
|
||||
"_neighborhood",
|
||||
"tags",
|
||||
"complex_array",
|
||||
"distinct_some_null",
|
||||
],
|
||||
"sql": "select pk, created, planet_int, on_earth, state, city_id, neighborhood, tags, complex_array, distinct_some_null from facetable order by pk limit 51",
|
||||
"sql": "select pk, created, planet_int, on_earth, state, city_id, _neighborhood, tags, complex_array, distinct_some_null from facetable order by pk limit 51",
|
||||
"query_name": None,
|
||||
"database": "fixtures",
|
||||
"table": "facetable",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue