mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
Fix for _sort_desc=sortable_with_nulls test, refs #216
This commit is contained in:
parent
2abe539a0f
commit
07fc2d113e
1 changed files with 2 additions and 1 deletions
|
|
@ -438,7 +438,8 @@ def test_paginate_compound_keys_with_extra_filters(app_client):
|
||||||
'_sort_desc=sortable_with_nulls',
|
'_sort_desc=sortable_with_nulls',
|
||||||
lambda row: (
|
lambda row: (
|
||||||
1 if row['sortable_with_nulls'] is None else 0,
|
1 if row['sortable_with_nulls'] is None else 0,
|
||||||
-row['sortable_with_nulls'] if row['sortable_with_nulls'] is not None else 0
|
-row['sortable_with_nulls'] if row['sortable_with_nulls'] is not None else 0,
|
||||||
|
row['content']
|
||||||
),
|
),
|
||||||
'sorted by sortable_with_nulls descending'
|
'sorted by sortable_with_nulls descending'
|
||||||
),
|
),
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue