mirror of
https://github.com/LBRYFoundation/lbry-sdk.git
synced 2025-08-27 15:31:29 +00:00
fix lint
This commit is contained in:
parent
d3984c7b7a
commit
da9e6a8274
1 changed files with 3 additions and 1 deletions
|
@ -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,
|
||||||
|
|
Loading…
Add table
Reference in a new issue