mirror of
https://github.com/Sea-Haven-Industries/meal-order-manager.git
synced 2026-10-07 03:31:58 +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):
|
def put_summary(week: str, summary: dict):
|
||||||
_get_table().put_item(
|
_get_table().put_item(
|
||||||
Item={
|
Item=_to_decimal(
|
||||||
"PK": f"WEEK#{week}",
|
{
|
||||||
"SK": "SUMMARY",
|
"PK": f"WEEK#{week}",
|
||||||
"ttl": ttl_days(90),
|
"SK": "SUMMARY",
|
||||||
**summary,
|
"ttl": ttl_days(90),
|
||||||
}
|
**summary,
|
||||||
|
}
|
||||||
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue