remove useless api link in launchpad bug output
This commit is contained in:
parent
cecdd9b464
commit
65388c5d09
1 changed files with 2 additions and 1 deletions
|
@ -105,8 +105,9 @@ class Ubottu(Plugin):
|
||||||
if self.flood_protection.flood_check_bug(bug_id) and self.flood_protection.flood_check(evt.sender):
|
if self.flood_protection.flood_check_bug(bug_id) and self.flood_protection.flood_check(evt.sender):
|
||||||
data = await self.lookup_launchpad_bug(bug_id)
|
data = await self.lookup_launchpad_bug(bug_id)
|
||||||
if data:
|
if data:
|
||||||
|
package = ''
|
||||||
if data['package'] != '':
|
if data['package'] != '':
|
||||||
package = ' in ' + '[' + data['package'] + '](' + data['target_link'] + ')'
|
package = ' in ' + data['package']
|
||||||
msg = f"Launchpad Bug [#{data['id']}]({data['link']}){package} \"{data['title']}\" [{data['importance']}, {data['status']}]"
|
msg = f"Launchpad Bug [#{data['id']}]({data['link']}){package} \"{data['title']}\" [{data['importance']}, {data['status']}]"
|
||||||
await evt.respond(msg)
|
await evt.respond(msg)
|
||||||
return True
|
return True
|
||||||
|
|
Loading…
Reference in a new issue