Skip to content

Commit

Permalink
feat: use en-US as fallback recommend app if using unmaintained langu…
Browse files Browse the repository at this point in the history
…age (#3063)
  • Loading branch information
takatost authored Apr 1, 2024
1 parent 1322696 commit 32e83e0
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions api/controllers/console/explore/recommended_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,12 @@ def get(self):
RecommendedApp.language == language_prefix
).all()

if len(recommended_apps) == 0:
recommended_apps = db.session.query(RecommendedApp).filter(
RecommendedApp.is_listed == True,
RecommendedApp.language == languages[0]
).all()

categories = set()
current_user.role = TenantService.get_user_role(current_user, current_user.current_tenant)
recommended_apps_result = []
Expand Down

0 comments on commit 32e83e0

Please sign in to comment.