From 1aa8fb91ab43e91f006fa477e44d0ed6839abb16 Mon Sep 17 00:00:00 2001 From: geistling <34081638+geistling@users.noreply.github.com> Date: Wed, 14 Aug 2024 13:38:56 -0400 Subject: [PATCH] fix select_one_project_allocation --- 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 4770e1561..7304efa1a 100644 --- a/coldfront/core/utils/fasrc.py +++ b/coldfront/core/utils/fasrc.py @@ -76,8 +76,8 @@ def select_one_project_allocation(project_obj, resource_obj, dirpath=None): allocation_query = project_obj.allocation_set.filter(**filter_vals) if allocation_query.count() == 1: allocation_obj = allocation_query.first() - if allocation_obj.subdirectory and allocation_obj.subdirectory != dirpath: - logger.error("directory path mismatch:", allocation_obj.subdirectory, dirpath) + if allocation_obj.path and allocation_obj.path != dirpath: + logger.error("directory path mismatch:", allocation_obj.path, dirpath) elif allocation_query.count() < 1: allocation_obj = None elif allocation_query.count() > 1: