forked from LBRYCommunity/lbry-sdk
Merge pull request #315 from kaykurokawa/fix_claim_bug
Fix bug to exclude support in get_my_claim
This commit is contained in:
commit
9ad55e93b9
1 changed files with 2 additions and 2 deletions
|
@ -390,12 +390,12 @@ class Wallet(object):
|
||||||
if not claim:
|
if not claim:
|
||||||
return False
|
return False
|
||||||
claim['value'] = json.loads(claim['value'])
|
claim['value'] = json.loads(claim['value'])
|
||||||
return claim
|
return claim
|
||||||
|
|
||||||
|
|
||||||
def _get_my_unspent_claim(claims):
|
def _get_my_unspent_claim(claims):
|
||||||
for claim in claims:
|
for claim in claims:
|
||||||
if claim['name'] == name and not claim['is spent'] and not claim.get('supported_claimid', False):
|
if claim['name'] == name and not claim['is spent'] and claim['category'] != 'support':
|
||||||
return claim
|
return claim
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue