Rerverse order of returned server jars versions

Logic I removed in my refactor, whoops!

Newest -> oldest
This commit is contained in:
Zedifus 2024-04-06 22:01:37 +01:00
parent 6a71b7d28c
commit 057139c7e1

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: