mirror of
https://github.com/qwerfd2/Groove_Coaster_2_Server.git
synced 2025-12-24 04:30:25 +00:00
Bug fixing and ready for Extra Challenge
This commit is contained in:
@@ -36,12 +36,12 @@ def get_4max_version_string():
|
||||
|
||||
def parse_res(res):
|
||||
parsed_data = []
|
||||
if isinstance(res, int):
|
||||
if isinstance(res, int) or res == None:
|
||||
return "Failed to fetch version info: Error " + str(res)
|
||||
|
||||
for item in res:
|
||||
if item.get("isOpen"):
|
||||
version = item.get("version", "Unknown Version")
|
||||
version = item.get("version", 0)
|
||||
changelog = "<br>".join(item.get("changeLog", {}).get("en", []))
|
||||
parsed_data.append(f"<strong>Version: {version}</strong><p><strong>Changelog:</strong><br>{changelog}</p>")
|
||||
return "".join(parsed_data)
|
||||
|
||||
Reference in New Issue
Block a user