meal-order-manager/src
Adam Moussa 53a1e503b3 Fix put_summary float serialization so SUMMARY records persist
aggregate_orders uploads the weekly PDF/CSVs to S3 and then calls
put_summary(), but put_summary spread the summary dict (which contains
float prices/totals) straight into put_item without Decimal conversion.
boto3 rejects floats (TypeError: Float types are not supported), so the
SUMMARY DynamoDB item was never written for any week (W20-W23).

The summary-PDF download endpoint gates on get_summary(week), so it got
None and returned 404 -- 'No summary PDF for <week> yet' -- even though
the PDF was sitting in S3.

Convert via _to_decimal in put_summary, matching put_order/put_settings.
2026-06-12 15:07:15 -04:00
..
aggregator Add discount pricing, Google auth, and order hardening (#10) 2026-05-13 18:00:21 -04:00
scraper Fix ruff lint and format violations, update README (#5) 2026-05-12 19:31:27 -04:00
server Add admin summary-PDF download endpoint and button 2026-06-05 18:41:55 -04:00
shared Fix put_summary float serialization so SUMMARY records persist 2026-06-12 15:07:15 -04:00