Additional fixes for gift models
This commit is contained in:
@@ -232,7 +232,7 @@ def read_gift_category(
|
||||
elif include_gifts:
|
||||
# If no event_id but include_gifts is true, just get all gifts for this category
|
||||
# This is less useful without event context but included for completeness
|
||||
gifts = db.query(GiftItem).filter(GiftItem.category_id == category_id).all()
|
||||
gifts = db.query(GiftItemModel).filter(GiftItemModel.category_id == category_id).all()
|
||||
gifts_list = gifts
|
||||
|
||||
# Create a new category response with the calculated values
|
||||
|
||||
Reference in New Issue
Block a user