mirror of
https://github.com/Sea-Haven-Industries/meal-order-manager.git
synced 2026-09-30 06:33:12 +00:00
Merge pull request #31 from Sea-Haven-Industries/fix/summary-pdf-decimal-serialization
Some checks failed
Deploy / deploy (push) Has been cancelled
Some checks failed
Deploy / deploy (push) Has been cancelled
Fix summary-PDF 404: persist SUMMARY records (Decimal serialization)
This commit is contained in:
commit
16dbd3b765
1 changed files with 8 additions and 6 deletions
|
|
@ -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,
|
||||
}
|
||||
)
|
||||
)
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue