Skip to content

Commit

Permalink
revevrt select_one_project_allocation change
Browse files Browse the repository at this point in the history
  • Loading branch information
claire-peters committed Dec 1, 2023
1 parent c833a88 commit 0c203cd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions coldfront/core/utils/fasrc.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 0c203cd

Please sign in to comment.