Skip to content

Commit 3ac6674

Browse files
authored
Update docdb query (#33)
1 parent f830fed commit 3ac6674

2 files changed

Lines changed: 8 additions & 2 deletions

File tree

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,4 +35,4 @@ RUN pip install spikeinterface-gui==0.13.1
3535
ENV PYTHONUNBUFFERED=1
3636

3737
EXPOSE 8000
38-
ENTRYPOINT ["python", "entrypoint.py", "--address", "0.0.0.0", "--port", "8000", "--test"]
38+
ENTRYPOINT ["python", "entrypoint.py", "--address", "0.0.0.0", "--port", "8000", "--test"]

src/aind_ephys_portal/docdb/database.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,13 @@ def get_all_ecephys_derived(
125125
additional_includes_in_name : str, optional
126126
Comma-separated list of additional fields to include in the results, by default None
127127
"""
128-
filter_query = {"data_description.modality.abbreviation": "ecephys", "data_description.data_level": "derived"}
128+
filter_query = {
129+
"$or": [
130+
{"data_description.modality.abbreviation": "ecephys"},
131+
{"data_description.modalities.abbreviation": "ecephys"},
132+
],
133+
"data_description.data_level": "derived",
134+
}
129135
client = client_v1 if version == "v1" else client_v2
130136
responses = client.retrieve_docdb_records(
131137
filter_query=filter_query,

0 commit comments

Comments
 (0)