Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
### Infrastructure

- Disable populate transaction protection for long-populating tables #1066
- Allow restriction based on parent keys in `Merge.fetch_nwb()` #1086

### Pipelines

Expand Down
6 changes: 3 additions & 3 deletions src/spyglass/utils/dj_merge_tables.py
Original file line number Diff line number Diff line change
Expand Up @@ -540,9 +540,9 @@ def fetch_nwb(
self & {self._reserved_sk: source} & restriction
).fetch("KEY")
nwb_list.extend(
self.merge_restrict_class(
source_restr, permit_multiple_rows=True
).fetch_nwb()
(self & source_restr)
.merge_restrict_class(restriction, permit_multiple_rows=True)
.fetch_nwb()
)
if return_merge_ids:
merge_ids.extend([k[self._reserved_pk] for k in source_restr])
Expand Down