mirror of
https://github.com/Sea-Haven-Industries/meal-order-manager.git
synced 2026-10-06 06:31:57 +00:00
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. |
||
|---|---|---|
| .. | ||
| aggregator | ||
| scraper | ||
| server | ||
| shared | ||