mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
Don't duplicate _sort_desc, refs #1738
This commit is contained in:
parent
080d4b3e06
commit
1563c22a8c
2 changed files with 2 additions and 1 deletions
|
|
@ -710,7 +710,7 @@ class TableView(DataView):
|
|||
for key in request.args:
|
||||
if (
|
||||
key.startswith("_")
|
||||
and key not in ("_sort", "_search", "_next")
|
||||
and key not in ("_sort", "_sort_desc", "_search", "_next")
|
||||
and "__" not in key
|
||||
):
|
||||
for value in request.args.getlist(key):
|
||||
|
|
|
|||
|
|
@ -828,6 +828,7 @@ def test_other_hidden_form_fields(app_client, path, expected_hidden):
|
|||
[
|
||||
("/fixtures/searchable?_search=terry", []),
|
||||
("/fixtures/searchable?_sort=text2", []),
|
||||
("/fixtures/searchable?_sort_desc=text2", []),
|
||||
("/fixtures/searchable?_sort=text2&_where=1", [("_where", "1")]),
|
||||
],
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue