diff --git a/CB/GitHub.py b/CB/GitHub.py index 161a7df..2521527 100644 --- a/CB/GitHub.py +++ b/CB/GitHub.py @@ -15,7 +15,8 @@ def __init__(self, url, clienttype): else: self.payload = self.payload.json() for release in self.payload: - if release['assets'] and len(release['assets']) > 0 and not release['draft']: + if release['assets'] and len(release['assets']) > 0\ + and not release['draft'] and not release['prerelease']: self.payload = release break else: diff --git a/CB/__init__.py b/CB/__init__.py index 39d0cf5..dbb338c 100644 --- a/CB/__init__.py +++ b/CB/__init__.py @@ -2,7 +2,7 @@ import random from rich.terminal_theme import TerminalTheme -__version__ = '3.17.5' +__version__ = '3.17.6' __license__ = 'GPLv3' __copyright__ = '2019-2021, Paweł Jastrzębski ' __docformat__ = 'restructuredtext en'