From 6ad952c4989de7c5a790235ab226e34cd8a045f7 Mon Sep 17 00:00:00 2001 From: Adam Moussa <166072409+amoussa1229@users.noreply.github.com> Date: Wed, 8 Apr 2026 13:22:28 -0400 Subject: [PATCH] Remove shift count column from pay email, update footer text (#15) - Remove the Shifts column from the Bonus Pay Summary email table (fixes #14) - Change footer from "After-Hours Shift Manager" to "Sea Haven Industries" (fixes #13) - Update README with pay report email section --- README.md | 4 ++++ src/weekly_post.py | 6 +++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 0a54c4e..e081167 100644 --- a/README.md +++ b/README.md @@ -67,6 +67,10 @@ python scripts/seed_schedule.py Every Monday at 7am ET, the bot posts the week's schedule to the configured channel with pickup buttons for any available shifts. +## Pay Report Email + +A weekly Bonus Pay Summary email is sent via SES with a table showing each employee's name, rate, and total pay for the week. + ## Related - [3cx-ring-scheduler](https://github.com/Sea-Haven-Industries/3cx-ring-scheduler) — the Lambda that updates 3CX ring group routing daily diff --git a/src/weekly_post.py b/src/weekly_post.py index ef2464c..2695d6b 100644 --- a/src/weekly_post.py +++ b/src/weekly_post.py @@ -80,7 +80,7 @@ def _build_pay_email_html(week_label: str, pay_record: dict) -> str: totals_rows = "" for name, info in sorted(pay_record["totals"].items()): totals_rows += ( - f"{name}{info['shifts']}" + f"{name}" f"${info.get('rate', 0):.2f}${info['total']:.2f}\n" ) @@ -89,10 +89,10 @@ def _build_pay_email_html(week_label: str, pay_record: dict) -> str:

Bonus Pay Summary — {week_label}

- + {totals_rows}
NameShiftsRateTotal
NameRateTotal
-

This is an automated report from the After-Hours Shift Manager.

+

This is an automated report from Sea Haven Industries.

"""