Merge branch 'tweak/reverse-sbuilder-sjar-versions' into 'dev'

Reverse order of returned server jars versions

See merge request crafty-controller/crafty-4!746
This commit is contained in:
Iain Powrie 2024-04-06 21:59:56 +00:00
commit 0abb81e6f8
2 changed files with 2 additions and 1 deletions

View File

@ -3,7 +3,7 @@
### New features
TBD
### Refactor
- Refactor ServerJars caching and move to api.serverjars.com ([Merge Request](https://gitlab.com/crafty-controller/crafty-4/-/merge_requests/744))
- Refactor ServerJars caching and move to api.serverjars.com ([Merge Request](https://gitlab.com/crafty-controller/crafty-4/-/merge_requests/744) | [Merge Request](https://gitlab.com/crafty-controller/crafty-4/-/merge_requests/746))
### Bug fixes
- Fix migrator issue when jumping versions ([Merge Request](https://gitlab.com/crafty-controller/crafty-4/-/merge_requests/734))
- Fix backend issue causing error when restoring backups in 4.3.x ([Merge Request](https://gitlab.com/crafty-controller/crafty-4/-/merge_requests/736))

View File

@ -175,6 +175,7 @@ class ServerJars:
for item in data.get("response", [])
if "version" in item
]
versions.reverse() # Reverse so versions are newest -> oldest
logger.debug(f"Versions extracted: {versions}")
return versions
except requests.RequestException as e: