Merge pull request #31 from Sea-Haven-Industries/fix/summary-pdf-decimal-serialization
Some checks failed
Deploy / deploy (push) Has been cancelled

Fix summary-PDF 404: persist SUMMARY records (Decimal serialization)
This commit is contained in:
Adam Moussa 2026-06-12 15:12:30 -04:00 • committed by GitHub
commit 16dbd3b765
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -110,12 +110,14 @@ def delete_order(week: str, employee_slug: str):
def put_summary(week: str, summary: dict):
_get_table().put_item(
Item={
"PK": f"WEEK#{week}",
"SK": "SUMMARY",
"ttl": ttl_days(90),
**summary,
}
Item=_to_decimal(
{
"PK": f"WEEK#{week}",
"SK": "SUMMARY",
"ttl": ttl_days(90),
**summary,
}
)
)