Skip to content

Commit

Permalink
fix empty filter bug
Browse files Browse the repository at this point in the history
  • Loading branch information
pablo-gar committed Nov 28, 2024
1 parent f867840 commit 7afa356
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/genomic_features/ensembl/ensembldb.py
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,12 @@ def _build_query(
else:
query = self.db.table(table)
# add filter
query = query.filter(filter.convert()).select(cols).order_by(cols)

filter = filter.convert()
if filter is not None:
query = query.filter(filter)

query = query.select(cols).order_by(cols)
return query

def _join_query(
Expand Down

0 comments on commit 7afa356

Please sign in to comment.