Mercurial > libervia-web
changeset 1464:a8435aebfbcc
pages: `page_max` query parameter can now be used on pubsub based pages:
`getPubsubExtra` now uses this parameter if available.
rel 39
author | Goffi <goffi@goffi.org> |
---|---|
date | Thu, 30 Sep 2021 17:00:06 +0200 |
parents | 2c8449885272 |
children | a410db730301 |
files | libervia/server/pages.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/libervia/server/pages.py Thu Sep 30 16:57:54 2021 +0200 +++ b/libervia/server/pages.py Thu Sep 30 17:00:06 2021 +0200 @@ -974,7 +974,7 @@ else: assert not {"rsm_max", "rsm_after", "rsm_before", C.KEY_ORDER_BY}.intersection(list(extra.keys())) - extra["rsm_max"] = str(page_max) + extra["rsm_max"] = params.get("page_max", str(page_max)) if order_by is not None: extra[C.KEY_ORDER_BY] = order_by if 'after' in params: