mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
Show count of facet values if ?_facet_size=max, closes #1423
This commit is contained in:
parent
2883098770
commit
adb5b70de5
4 changed files with 30 additions and 2 deletions
|
|
@ -928,6 +928,7 @@ class TableView(RowTableShared):
|
|||
key=lambda f: (len(f["results"]), f["name"]),
|
||||
reverse=True,
|
||||
),
|
||||
"show_facet_counts": special_args.get("_facet_size") == "max",
|
||||
"extra_wheres_for_ui": extra_wheres_for_ui,
|
||||
"form_hidden_args": form_hidden_args,
|
||||
"is_sortable": any(c["sortable"] for c in display_columns),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue