This commit is contained in:
Lex Berezhny 2020-10-16 11:18:03 -04:00
parent 0a0ac3b7c9
commit 4c5429af15

View file

@ -2321,7 +2321,9 @@ class Daemon(metaclass=JSONRPCServerType):
""" """
page_num, page_size = abs(kwargs.pop('page', 1)), min(abs(kwargs.pop('page_size', DEFAULT_PAGE_SIZE)), 50) page_num, page_size = abs(kwargs.pop('page', 1)), min(abs(kwargs.pop('page_size', DEFAULT_PAGE_SIZE)), 50)
kwargs.update({'offset': page_size * (page_num - 1), 'limit': page_size}) kwargs.update({'offset': page_size * (page_num - 1), 'limit': page_size})
support_sums = await self.ledger.sum_supports(new_sdk_server, claim_id=claim_id, include_channel_content=include_channel_content, **kwargs) support_sums = await self.ledger.sum_supports(
new_sdk_server, claim_id=claim_id, include_channel_content=include_channel_content, **kwargs
)
return { return {
"items": support_sums, "items": support_sums,
"page": page_num, "page": page_num,