Skip to content

Commit

Permalink
Merge pull request #1116 from microbiomedata/1115-envo-omics-filters
Browse files Browse the repository at this point in the history
Specify join for envo term when faceting omics_processing
  • Loading branch information
naglepuff authored Jan 19, 2024
2 parents 3402d7b + 15ebb01 commit 5b310ec
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion nmdc_server/filters.py
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,10 @@ class BiosampleFilter(BaseFilter):
table = Table.biosample

def join_omics_processing(self, query: Query) -> Query:
return query.join(models.biosample_input_association).join(models.Biosample)
return self.join_self(
query.join(models.biosample_input_association).join(models.Biosample),
Table.biosample,
)

def join_biosample(self, query: Query) -> Query:
return self.join_self(query, Table.biosample)
Expand Down

0 comments on commit 5b310ec

Please sign in to comment.