From 0faad9f0f3f842d4ccb8f3d57a1bbc21bade6e93 Mon Sep 17 00:00:00 2001 From: conp-admin Date: Fri, 11 Oct 2024 16:49:41 -0400 Subject: [PATCH] Fix dataset cBrain filter --- app/search/routes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/search/routes.py b/app/search/routes.py index 2cc012bb..d2e26321 100755 --- a/app/search/routes.py +++ b/app/search/routes.py @@ -332,7 +332,7 @@ def dataset_search(): if request.args.get('cbrain'): elements = list( - filter(lambda e: e['cbrain_id'] != '', elements) + filter(lambda e: e['cbrain_id'], elements) ) cursor = None