Skip to content

Commit

Permalink
fix: fix locations GET filters. ref #138
Browse files Browse the repository at this point in the history
  • Loading branch information
raphodn committed Jan 14, 2024
1 parent 6fdb640 commit 3d75e16
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/crud.py
Original file line number Diff line number Diff line change
Expand Up @@ -335,8 +335,8 @@ def get_locations_query(filters: LocationFilter | None = None):
return query


def get_locations(db: Session):
return db.execute(get_locations_query()).all()
def get_locations(db: Session, filters: LocationFilter | None = None):
return db.execute(get_locations_query(filters=filters)).all()


def get_location_by_id(db: Session, id: int):
Expand Down

0 comments on commit 3d75e16

Please sign in to comment.