mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
Facet toggling now works for integer columns, refs #255
This commit is contained in:
parent
de05cf21aa
commit
f36c9d4b4c
3 changed files with 63 additions and 18 deletions
|
|
@ -508,7 +508,7 @@ class TableView(RowTableShared):
|
|||
)
|
||||
facet_results[column] = []
|
||||
for row in facet_rows:
|
||||
selected = other_args.get(column) == row["value"]
|
||||
selected = str(other_args.get(column)) == str(row["value"])
|
||||
if selected:
|
||||
toggle_path = path_with_removed_args(
|
||||
request, {column: row["value"]}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue