From 4a6e971e713bd1612632bd36ef4a81b9fbe2e8f6 Mon Sep 17 00:00:00 2001 From: Francesco Siddi Date: Thu, 4 Apr 2019 15:31:28 +0200 Subject: [PATCH] Show only groups and assets in browse endpoint --- cloud/routes.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cloud/routes.py b/cloud/routes.py index 2516f45..886d405 100644 --- a/cloud/routes.py +++ b/cloud/routes.py @@ -535,7 +535,8 @@ def project_browse_view_nodes(project: pillarsdk.Project): 'project': project['_id'], 'parent': {'$exists': False}, 'properties.status': 'published', - '_deleted': {'$ne': True} + '_deleted': {'$ne': True}, + 'node_type': {'$in': ['group', 'asset']}, } try: