diff --git a/src/shared/shared/db.py b/src/shared/shared/db.py index 6232dba..27502a9 100644 --- a/src/shared/shared/db.py +++ b/src/shared/shared/db.py @@ -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, + } + ) )