Files
bakery-ia/services
Claude 298be127d7 Fix template variable interpolation by creating params copy
Root cause: params = reasoning_data.get('parameters', {}) created a reference
to the dictionary instead of a copy. When modifying params to add
product_names_joined, the change didn't persist because the database object
was immutable/read-only.

Changes:
- dashboard_service.py:408 - Create dict copy for PO params
- dashboard_service.py:632 - Create dict copy for batch params
- Added clean_old_dashboard_data.py utility script to remove old POs/batches
  with malformed reasoning_data

The fix ensures template variables like {{supplier_name}}, {{product_names_joined}},
{{days_until_stockout}}, etc. are properly interpolated in the dashboard.
2025-11-20 19:30:12 +00:00
..
2025-11-06 14:10:04 +01:00
2025-11-13 16:01:08 +01:00
2025-11-06 14:10:04 +01:00
2025-11-14 20:27:39 +01:00
2025-11-18 07:17:17 +01:00
2025-11-15 21:21:06 +01:00
2025-11-18 07:17:17 +01:00
2025-11-06 14:10:04 +01:00
2025-11-06 14:10:04 +01:00
2025-11-06 14:10:04 +01:00
2025-11-15 15:20:10 +01:00