Skip to content

Commit

Permalink
changes get_statuses to use select
Browse files Browse the repository at this point in the history
  • Loading branch information
niquerio committed Nov 20, 2024
1 parent 2449b9d commit f1bbe5f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion aim/digifeeds/database/crud.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ def get_statuses(db: Session):
Returns:
aim.digifeeds.database.models.Status: Status object
"""
return db.query(models.Status).all()
return db.scalars(select(models.Status)).all()


def add_item_status(db: Session, item: models.Item, status: models.Status):
Expand Down

0 comments on commit f1bbe5f

Please sign in to comment.