Skip to content

Commit

Permalink
Fixed issue with compact mode (close #353)
Browse files Browse the repository at this point in the history
  • Loading branch information
AcidWeb committed Nov 18, 2022
1 parent 1a6355b commit 94fe91e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion CB/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import requests
from rich.terminal_theme import TerminalTheme

__version__ = '4.3.2'
__version__ = '4.3.3'
__license__ = 'GPLv3'
__copyright__ = '2019-2022, Paweł Jastrzębski <[email protected]>'
__docformat__ = 'restructuredtext en'
Expand Down
14 changes: 8 additions & 6 deletions CurseBreaker.py
Original file line number Diff line number Diff line change
Expand Up @@ -529,6 +529,7 @@ def c_update(self, args, addline=False, update=True, force=False, reverseprovide
name, authors, versionnew, versionold, uiversion, modified, blocked, source, sourceurl, \
changelog, dstate = self.core.update_addon(
addon if isinstance(addon, str) else addon['URL'], update, force)
payload = None
if source == 'Unsupported' and not provider:
additionalstatus = f' [bold red]{source.upper()}[/bold red]'
else:
Expand Down Expand Up @@ -561,12 +562,13 @@ def c_update(self, args, addline=False, update=True, force=False, reverseprovide
else:
payload = [f'[bold black]Not installed[/bold black]{additionalstatus}',
Text(addon, no_wrap=True), Text('', no_wrap=True)]
if provider:
if source == 'Unsupported':
payload.insert(1, f'[bold red]{source.upper()}[/bold red]')
else:
payload.insert(1, source)
self.table.add_row(*payload)
if payload:
if provider:
if source == 'Unsupported':
payload.insert(1, f'[bold red]{source.upper()}[/bold red]')
else:
payload.insert(1, source)
self.table.add_row(*payload)
except Exception as e:
exceptions.append(e)
progress.update(task, advance=1 if args else 0.5, refresh=True)
Expand Down

0 comments on commit 94fe91e

Please sign in to comment.