Fix/6034 get random order of categories in explore and workflow is missing in zh hant (#6043)
This commit is contained in:
@@ -110,7 +110,12 @@ class RecommendedAppService:
|
||||
if response.status_code != 200:
|
||||
raise ValueError(f'fetch recommended apps failed, status code: {response.status_code}')
|
||||
|
||||
return response.json()
|
||||
result = response.json()
|
||||
|
||||
if "categories" in result:
|
||||
result["categories"] = sorted(result["categories"])
|
||||
|
||||
return result
|
||||
|
||||
@classmethod
|
||||
def _fetch_recommended_apps_from_builtin(cls, language: str) -> dict:
|
||||
|
Reference in New Issue
Block a user