mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
parent
f069950a14
commit
9c58d048ec
2 changed files with 4 additions and 0 deletions
|
|
@ -629,6 +629,8 @@ class TableView(RowTableShared):
|
|||
# If there's a sort or sort_desc, add that value as a prefix
|
||||
if (sort or sort_desc) and not is_view:
|
||||
prefix = rows[-2][sort or sort_desc]
|
||||
if isinstance(prefix, dict) and "value" in prefix:
|
||||
prefix = prefix["value"]
|
||||
if prefix is None:
|
||||
prefix = "$null"
|
||||
else:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue