Skip to content

Commit

Permalink
try all
Browse files Browse the repository at this point in the history
  • Loading branch information
Mropat committed Nov 2, 2021
1 parent c2087bc commit 2a43dfe
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion statina/crud/find/samples.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,10 @@ def query_samples(
raw_samples: Iterable[dict] = (
adapter.sample_collection.find(
{
"$and": [{"batch_id": batch_id}, get_sample_text_query(query_string=query_string)],
"$and": [
{"batch_id": batch_id or "$all"},
get_sample_text_query(query_string=query_string),
],
}
)
.sort(sort_key, sort_table.get(sort_direction))
Expand Down

0 comments on commit 2a43dfe

Please sign in to comment.