diff --git a/backend/crud.py b/backend/crud.py index d592091..296e482 100644 --- a/backend/crud.py +++ b/backend/crud.py @@ -67,8 +67,8 @@ def items_for_trip(db: Session, user_id: UUID_t, trip: models.Trip, selected_tag if not item_tag_ids: result.append(it) elif mandatory_tag_ids: - # Only include if at least one mandatory tag is selected - if selected_set & mandatory_tag_ids: + # Nur aufnehmen, wenn ALLE mandatory tags ausgewählt sind + if mandatory_tag_ids <= selected_set: result.append(it) elif selected_set & item_tag_ids: result.append(it)