diff --git a/cddagl/ui/views/main.py b/cddagl/ui/views/main.py index 4b6b130b..1a1741aa 100644 --- a/cddagl/ui/views/main.py +++ b/cddagl/ui/views/main.py @@ -1466,10 +1466,10 @@ def find_build_finished(self): r'cdda-windows-' + re.escape(new_asset_graphics) + r'-' + re.escape(new_asset_platform) + r'-' + - r'b?(?P\d+)\.zip' + r'b?(?P[0-9\-]+)\.zip' ) - build_regex = re.compile(r'[Bb]uild #(?P\d+)') + build_regex = re.compile(r'[Bb]uild #?(?P[0-9\-]+)') if any(x not in release for x in ('name', 'created_at')): return @@ -1515,7 +1515,7 @@ def find_build_finished(self): return if len(builds) > 0: - builds.sort(key=lambda x: (x['date'], int(x['number'])), reverse=True) + builds.sort(key=lambda x: (x['date'], x['number']), reverse=True) self.builds = builds self.builds_combo.clear() @@ -3026,10 +3026,10 @@ def lb_http_finished(self): r'cdda-windows-' + re.escape(new_asset_graphics) + r'-' + re.escape(new_asset_platform) + r'-' + - r'b?(?P\d+)\.zip' + r'b?(?P[0-9\-]+)\.zip' ) - build_regex = re.compile(r'[Bb]uild #(?P\d+)') + build_regex = re.compile(r'[Bb]uild #?(?P[0-9\-]+)') for release in releases: if any(x not in release for x in ('name', 'created_at')): @@ -3059,7 +3059,7 @@ def lb_http_finished(self): builds.append(build) if len(builds) > 0: - builds.sort(key=lambda x: (x['date'], int(x['number'])), reverse=True) + builds.sort(key=lambda x: (x['date'], x['number']), reverse=True) self.builds = builds self.builds_combo.clear() @@ -3175,7 +3175,7 @@ def refresh_builds(self): } builds.append(build) - builds.sort(key=lambda x: (int(x['number']), x['date']), reverse=True) + builds.sort(key=lambda x: (x['date'], x['number']), reverse=True) self.builds = builds self.builds_combo.clear()