Add whatsapp feature

This commit is contained in:
Urtzi Alfaro
2025-11-13 16:01:08 +01:00
parent d7df2b0853
commit 9bc048d360
74 changed files with 9765 additions and 533 deletions

View File

@@ -154,7 +154,7 @@ async def seed_ingredients_for_tenant(
shelf_life_days=ing_data.get("shelf_life_days"),
is_perishable=ing_data.get("is_perishable", False),
is_active=True,
allergen_info=ing_data.get("allergen_info", []),
allergen_info=ing_data.get("allergen_info") if ing_data.get("allergen_info") else None,
# NEW: Local production support (Sprint 5)
produced_locally=ing_data.get("produced_locally", False),
recipe_id=uuid.UUID(ing_data["recipe_id"]) if ing_data.get("recipe_id") else None,