mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
Entirely removed table_rows_count table property
We were not displaying this anywhere, and it is now expensive to calculate. Refs #419, #420
This commit is contained in:
parent
3651eedf20
commit
efc93b8ab5
4 changed files with 0 additions and 10 deletions
|
|
@ -700,7 +700,6 @@ def test_page_size_zero(app_client):
|
|||
response = app_client.get('/fixtures/no_primary_key.json?_size=0')
|
||||
assert 200 == response.status
|
||||
assert [] == response.json['rows']
|
||||
assert 201 == response.json['table_rows_count']
|
||||
assert 201 == response.json['filtered_table_rows_count']
|
||||
assert None is response.json['next']
|
||||
assert None is response.json['next_url']
|
||||
|
|
@ -800,7 +799,6 @@ def test_sortable_and_filtered(app_client):
|
|||
if 'd' in row['content']
|
||||
]
|
||||
assert len(expected) == response.json['filtered_table_rows_count']
|
||||
assert 201 == response.json['table_rows_count']
|
||||
expected.sort(key=lambda row: -row['sortable'])
|
||||
assert [
|
||||
r['content'] for r in expected
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue