mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
?_size=max option, closes #249
This commit is contained in:
parent
bb87cf8730
commit
d4da4c92c8
3 changed files with 6 additions and 2 deletions
|
|
@ -869,6 +869,8 @@ class TableView(RowTableShared):
|
|||
# Handle ?_page_size=500
|
||||
page_size = request.raw_args.get('_size')
|
||||
if page_size:
|
||||
if page_size == 'max':
|
||||
page_size = self.max_returned_rows
|
||||
try:
|
||||
page_size = int(page_size)
|
||||
if page_size < 0:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue