Fix _col=<pk> producing duplicate column in output (#2774)

Closes #1975
This commit is contained in:
Ritesh Kewlani 2026-06-24 02:48:49 +05:30 committed by GitHub
commit 463eea2bd0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 12 additions and 2 deletions

View file

@ -1420,6 +1420,16 @@ def test_generated_columns_are_visible_in_datasette():
"/fixtures/facetable.json?_col=state&_col=state",
["pk", "state"],
),
(
# https://github.com/simonw/datasette/issues/1975
"/fixtures/facetable.json?_col=pk&_col=state",
["pk", "state"],
),
(
# https://github.com/simonw/datasette/issues/1975
"/fixtures/facetable.json?_col=pk",
["pk"],
),
(
"/fixtures/facetable.json?_col=state&_col=created&_nocol=created",
["pk", "state"],