mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
sortable_columns also now works with views
This commit is contained in:
parent
4ac9132240
commit
5629aaca67
4 changed files with 42 additions and 18 deletions
|
|
@ -352,7 +352,8 @@ class TableView(RowTableShared):
|
|||
sortable_columns = set()
|
||||
if not is_view:
|
||||
table_rows_count = table_info["count"]
|
||||
sortable_columns = self.sortable_columns_for_table(name, table, use_rowid)
|
||||
|
||||
sortable_columns = self.sortable_columns_for_table(name, table, use_rowid)
|
||||
|
||||
# Allow for custom sort order
|
||||
sort = special_args.get("_sort")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue