_user_constraints() loads dietary_constraints from user_settings once per request. All 7 _enrich_item call sites now pass constraints so wine (and any future alcohol-containing entries) are suppressed for halal/alcohol-free users at the API response layer. |
||
|---|---|---|
| .. | ||
| endpoints | ||
| __init__.py | ||
| routes.py | ||