add lbry:// to permanent_url response field

This commit is contained in:
Lex Berezhny 2019-04-22 18:13:02 -04:00
parent 3357a419ab
commit fa8858325c

View file

@ -80,7 +80,7 @@ class Output(BaseOutput):
@property
def permanent_url(self) -> str:
if self.script.is_claim_involved:
return f"{self.claim_name}#{self.claim_id}"
return f"lbry://{self.claim_name}#{self.claim_id}"
raise ValueError('No claim associated.')
@property