Skip to content

Commit

Permalink
Added links in Wago updater
Browse files Browse the repository at this point in the history
  • Loading branch information
AcidWeb committed Sep 29, 2020
1 parent 42a4039 commit e5f2e76
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions CB/Wago.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,12 +123,12 @@ def check_updates(self, addon):
entry['slug'] = entry['_id']
if entry['version'] > addon.list[entry['slug']] and (not entry['slug'] in addon.ignored or
(entry['slug'] in addon.ignored and entry['version'] != addon.ignored[entry['slug']])):
output[0].append(entry['name'])
output[0].append([entry['name'], entry['url']])
self.update_entry(entry, addon)
elif 'name' in entry:
output[1].append(entry['name'])
output[0].sort()
output[1].sort()
output[1].append([entry['name'], entry['url']])
output[0] = sorted(output[0], key=lambda v: v[0])
output[1] = sorted(output[1], key=lambda v: v[0])
return output

def parse_changelog(self, entry):
Expand Down
8 changes: 4 additions & 4 deletions CurseBreaker.py
Original file line number Diff line number Diff line change
Expand Up @@ -648,19 +648,19 @@ def c_wago_update(self, _, verbose=True):
if len(statuswa[0]) > 0 or len(statuswa[1]) > 0:
self.console.print('[green]Outdated WeakAuras:[/green]')
for aura in statuswa[0]:
self.console.print(aura, highlight=False)
self.console.print(f'[link={aura[1]}]{aura[0]}[/link]', highlight=False)
self.console.print('\n[green]Detected WeakAuras:[/green]')
for aura in statuswa[1]:
self.console.print(aura, highlight=False)
self.console.print(f'[link={aura[1]}]{aura[0]}[/link]', highlight=False)
if len(statusplater[0]) > 0 or len(statusplater[1]) > 0:
if len(statuswa[0]) != 0 or len(statuswa[1]) != 0:
self.console.print('')
self.console.print('[green]Outdated Plater profiles/scripts:[/green]')
for aura in statusplater[0]:
self.console.print(aura, highlight=False)
self.console.print(f'[link={aura[1]}]{aura[0]}[/link]', highlight=False)
self.console.print('\n[green]Detected Plater profiles/scripts:[/green]')
for aura in statusplater[1]:
self.console.print(aura, highlight=False)
self.console.print(f'[link={aura[1]}]{aura[0]}[/link]', highlight=False)
else:
if len(statuswa[0]) > 0:
self.console.print(f'\n[green]The number of outdated WeakAuras:[/green] '
Expand Down

0 comments on commit e5f2e76

Please sign in to comment.