Skip to content

Commit

Permalink
GitHub: Ignore prereleases
Browse files Browse the repository at this point in the history
  • Loading branch information
AcidWeb committed Apr 1, 2021
1 parent 23b26b7 commit f1099cc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion CB/GitHub.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion CB/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 <[email protected]>'
__docformat__ = 'restructuredtext en'
Expand Down

0 comments on commit f1099cc

Please sign in to comment.