forked from LBRYCommunity/lbry-sdk
Resolving a channel returns 'channel_claim_count'
Since I couldn't get my lbryum server up for testing this, it is a dry fix based on the review. Goes with lbryio/lbryum#138
This commit is contained in:
parent
bf6bc02828
commit
b9257004dd
3 changed files with 4 additions and 3 deletions
|
@ -48,6 +48,7 @@ at anytime.
|
||||||
* Linux default downloads folder changed from `~/Downloads` to `XDG_DOWNLOAD_DIR`
|
* Linux default downloads folder changed from `~/Downloads` to `XDG_DOWNLOAD_DIR`
|
||||||
* Linux folders moved from the home directory to `~/.local/share/lbry`
|
* Linux folders moved from the home directory to `~/.local/share/lbry`
|
||||||
* Windows folders moved from `%AppData%/Roaming` to `%AppData%/Local/lbry`
|
* Windows folders moved from `%AppData%/Roaming` to `%AppData%/Local/lbry`
|
||||||
|
* Changed `claim_list_by_channel` to return the `claims_in_channel` count instead of the `claims_in_channel_pages` count
|
||||||
|
|
||||||
### Added
|
### Added
|
||||||
* Add link to instructions on how to change the default peer port
|
* Add link to instructions on how to change the default peer port
|
||||||
|
|
|
@ -191,7 +191,7 @@ Returns:
|
||||||
If there was an error:
|
If there was an error:
|
||||||
'error': (str) error message
|
'error': (str) error message
|
||||||
|
|
||||||
'claims_in_channel_pages': total number of pages with <page_size> results,
|
'claims_in_channel': the total number of results for the channel,
|
||||||
|
|
||||||
If a page of results was requested:
|
If a page of results was requested:
|
||||||
'returned_page': page number returned,
|
'returned_page': page number returned,
|
||||||
|
|
|
@ -2019,7 +2019,7 @@ class Daemon(AuthJSONRPCServer):
|
||||||
If there was an error:
|
If there was an error:
|
||||||
'error': (str) error message
|
'error': (str) error message
|
||||||
|
|
||||||
'claims_in_channel_pages': total number of pages with <page_size> results,
|
'claims_in_channel': the total number of results for the channel,
|
||||||
|
|
||||||
If a page of results was requested:
|
If a page of results was requested:
|
||||||
'returned_page': page number returned,
|
'returned_page': page number returned,
|
||||||
|
@ -2077,7 +2077,7 @@ class Daemon(AuthJSONRPCServer):
|
||||||
results[u] = resolved[u]
|
results[u] = resolved[u]
|
||||||
else:
|
else:
|
||||||
results[u] = {
|
results[u] = {
|
||||||
'claims_in_channel_pages': resolved[u]['claims_in_channel_pages']
|
'claims_in_channel': resolved[u]['claims_in_channel']
|
||||||
}
|
}
|
||||||
if page:
|
if page:
|
||||||
results[u]['returned_page'] = page
|
results[u]['returned_page'] = page
|
||||||
|
|
Loading…
Reference in a new issue