Commit 392d665
committed
templates/table.html: use ['count'] for the count-all click handler
Warehouse overrides datasette's table.html via --template-dir, so the
upstream fix on duckdb-deploy doesn't reach the rendered page — the
warehouse copy still had data['rows'][0]['count(*)'] which is wrong
on DuckDB (returns null since the column is named 'count_star()').
Match the upstream fix here. (The SQLite track is unaffected because
SQLite returns 'count(*)' as the column name; the upstream change
aliases to 'count' which is what this JS now reads.)1 parent 6d3ab79 commit 392d665
1 file changed
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
211 | 211 | | |
212 | 212 | | |
213 | 213 | | |
214 | | - | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
215 | 218 | | |
216 | 219 | | |
217 | 220 | | |
| |||
0 commit comments