diff options
Diffstat (limited to 'services/pantry_service.py')
| -rw-r--r-- | services/pantry_service.py | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/services/pantry_service.py b/services/pantry_service.py index 19271e5..c428098 100644 --- a/services/pantry_service.py +++ b/services/pantry_service.py @@ -14,19 +14,12 @@ def build_pantry_context(db: Session) -> dict: available = [ { "name": i.name, - "quantity": i.quantity, - "unit": i.unit, "category": i.category, - "expiry": i.expiry_date.isoformat() if i.expiry_date else None, } for i in all_ingredients ] - # Expiring within 3 days - expiring = [ - i for i in available - if i["expiry"] and i["expiry"] <= soon.isoformat() - ] + expiring = [] # Recent meals (last 14 days) cutoff = datetime.utcnow() - timedelta(days=14) |
