make permanent url name#claim_id on torba too

This commit is contained in:
Victor Shyba 2019-04-04 19:01:12 -03:00 committed by Lex Berezhny
parent c1d3b5984d
commit a0a810edc3

View file

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