Skip to content

Commit

Permalink
Fixed issues with dev version detection
Browse files Browse the repository at this point in the history
For real this time
  • Loading branch information
AcidWeb committed Jul 2, 2019
1 parent 374aa7c commit a11034f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CB/CurseForge.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def __init__(self, url, cache, allowdev):

def get_current_version(self):
files = sorted(self.payload['latestFiles'], key=itemgetter('id'), reverse=True)
for status in [[3, 2], [1]] if self.allowDev else [[1], [2], [3]]:
for status in [[3, 2, 1]] if self.allowDev else [[1], [2], [3]]:
for f in files:
if f['releaseType'] in status and '-nolib' not in f['displayName'] and not f['isAlternate']:
self.downloadUrl = f['downloadUrl']
Expand Down
2 changes: 1 addition & 1 deletion CB/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
__version__ = '1.5.3'
__version__ = '1.5.4'
__license__ = 'GPLv3'
__copyright__ = '2019, Paweł Jastrzębski <[email protected]>'
__docformat__ = 'restructuredtext en'
Expand Down

0 comments on commit a11034f

Please sign in to comment.