mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
Started unit tests for row/table HTML pages
Refs #167 Thanks to the new tests, spotted and fixed a bug where pages that were supposed to have 100 things on them were actually displaying 101.
This commit is contained in:
parent
3f2fed1093
commit
7a7e4b2ed8
3 changed files with 75 additions and 1 deletions
|
|
@ -672,6 +672,7 @@ class TableView(RowTableShared):
|
|||
next_url = urllib.parse.urljoin(request.url, path_with_added_args(request, {
|
||||
'_next': next_value,
|
||||
}))
|
||||
rows = rows[:self.page_size]
|
||||
|
||||
# Number of filtered rows in whole set:
|
||||
filtered_table_rows = None
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue