From 0c203cd8dd1c6aecdcd2110b0870774ac406b049 Mon Sep 17 00:00:00 2001 From: Claire Peters Date: Fri, 1 Dec 2023 14:37:14 -0800 Subject: [PATCH] revevrt select_one_project_allocation change --- coldfront/core/utils/fasrc.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/coldfront/core/utils/fasrc.py b/coldfront/core/utils/fasrc.py index 4b5f9f14e..2b1c22165 100644 --- a/coldfront/core/utils/fasrc.py +++ b/coldfront/core/utils/fasrc.py @@ -54,8 +54,8 @@ def select_one_project_allocation(project_obj, resource_obj, dirpath=None): resource_obj """ filter_vals = {'resources__id': resource_obj.id} - if dirpath: - filter_vals['allocationattribute__value'] = dirpath + # if dirpath: + # filter_vals['allocationattribute__value'] = dirpath allocation_query = project_obj.allocation_set.filter(**filter_vals) if allocation_query.count() == 1: allocation_obj = allocation_query.first()