From a11034fc336de7d381f36214e5b01b9ef3448043 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Jastrz=C4=99bski?= Date: Tue, 2 Jul 2019 09:30:28 +0200 Subject: [PATCH] Fixed issues with dev version detection For real this time --- CB/CurseForge.py | 2 +- CB/__init__.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CB/CurseForge.py b/CB/CurseForge.py index 1af16a4..a137380 100644 --- a/CB/CurseForge.py +++ b/CB/CurseForge.py @@ -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'] diff --git a/CB/__init__.py b/CB/__init__.py index 97fa5a7..2ce9df4 100644 --- a/CB/__init__.py +++ b/CB/__init__.py @@ -1,4 +1,4 @@ -__version__ = '1.5.3' +__version__ = '1.5.4' __license__ = 'GPLv3' __copyright__ = '2019, Paweł Jastrzębski ' __docformat__ = 'restructuredtext en'