mirror of
https://github.com/langgenius/dify.git
synced 2025-10-28 09:34:41 +00:00
Fix/6034 get random order of categories in explore and workflow is missing in zh hant (#6043)
This commit is contained in:
parent
91c5818236
commit
3ec80f9dda
1
.vscode/launch.json
vendored
1
.vscode/launch.json
vendored
@ -13,7 +13,6 @@
|
|||||||
"jinja": true,
|
"jinja": true,
|
||||||
"env": {
|
"env": {
|
||||||
"FLASK_APP": "app.py",
|
"FLASK_APP": "app.py",
|
||||||
"FLASK_DEBUG": "1",
|
|
||||||
"GEVENT_SUPPORT": "True"
|
"GEVENT_SUPPORT": "True"
|
||||||
},
|
},
|
||||||
"args": [
|
"args": [
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
@ -110,7 +110,12 @@ class RecommendedAppService:
|
|||||||
if response.status_code != 200:
|
if response.status_code != 200:
|
||||||
raise ValueError(f'fetch recommended apps failed, status code: {response.status_code}')
|
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
|
@classmethod
|
||||||
def _fetch_recommended_apps_from_builtin(cls, language: str) -> dict:
|
def _fetch_recommended_apps_from_builtin(cls, language: str) -> dict:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user