diff --git a/api/controllers/console/explore/recommended_app.py b/api/controllers/console/explore/recommended_app.py index fd90be03b1674..875170ece3581 100644 --- a/api/controllers/console/explore/recommended_app.py +++ b/api/controllers/console/explore/recommended_app.py @@ -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 = []