Skip to content

Commit

Permalink
fix list_aggregates to work for public FI file records
Browse files Browse the repository at this point in the history
  • Loading branch information
juhuntenburg committed Jan 4, 2024
1 parent 342f7f0 commit f37db54
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion one/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -1762,7 +1762,7 @@ def list_aggregates(self, relation: str, identifier: str = None,
.reset_index(level=0)
.drop('eid', axis=1)
.rename_axis(index={'id': 'did'}))
records['relation'] = records['rel_path'].map(lambda x: x.split('/')[1].lower())
records['relation'] = records['rel_path'].map(lambda x: x.split('aggregates')[-1].split('/')[1].lower())
records = records[records['relation'] == relation.lower()]

def path2id(p) -> str:
Expand Down

0 comments on commit f37db54

Please sign in to comment.