forked from LBRYCommunity/lbry-sdk
Fixes and updated gitignore
This commit is contained in:
parent
74b3da79aa
commit
a63442f843
2 changed files with 3 additions and 2 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -1,3 +1,4 @@
|
||||||
|
.DS_Store
|
||||||
/build
|
/build
|
||||||
/dist
|
/dist
|
||||||
/.tox
|
/.tox
|
||||||
|
|
|
@ -1605,7 +1605,7 @@ class Daemon(metaclass=JSONRPCServerType):
|
||||||
#sort_claim_results(claims)
|
#sort_claim_results(claims)
|
||||||
return {"items": claims, "total_pages": total_pages, "page": page, "page_size": page_size}
|
return {"items": claims, "total_pages": total_pages, "page": page, "page_size": page_size}
|
||||||
else:
|
else:
|
||||||
raise Exception("Must specify either name, claimd_id, or txid:nout.")
|
raise Exception("Must specify either name, claim_id, or txid:nout.")
|
||||||
if claims:
|
if claims:
|
||||||
resolutions = await self.resolve(*(f"{claim['name']}#{claim['claim_id']}" for claim in claims['claims']))
|
resolutions = await self.resolve(*(f"{claim['name']}#{claim['claim_id']}" for claim in claims['claims']))
|
||||||
claims = [value.get('claim', value.get('certificate')) for value in resolutions.values()]
|
claims = [value.get('claim', value.get('certificate')) for value in resolutions.values()]
|
||||||
|
@ -3136,7 +3136,7 @@ class Daemon(metaclass=JSONRPCServerType):
|
||||||
}
|
}
|
||||||
"""
|
"""
|
||||||
# Should be like this:
|
# Should be like this:
|
||||||
# comment list [claimd_id] [parent_comment_id] --flat --page=1 --page-size=10
|
# comment list [claim_id] [parent_comment_id] --flat --page=1 --page-size=10
|
||||||
url = self.conf.comment_server
|
url = self.conf.comment_server
|
||||||
# The server uses permanent URIs for keys; not claims.
|
# The server uses permanent URIs for keys; not claims.
|
||||||
# This is temporary until we can get that functionality removed
|
# This is temporary until we can get that functionality removed
|
||||||
|
|
Loading…
Reference in a new issue