Skip to content

Commit

Permalink
flake
Browse files Browse the repository at this point in the history
  • Loading branch information
juhuntenburg committed Jan 4, 2024
1 parent f37db54 commit 0c867a0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion one/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -1762,7 +1762,9 @@ 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('aggregates')[-1].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 0c867a0

Please sign in to comment.