From 610bb3ec38e0c7a21457e72a73eff258968d84c7 Mon Sep 17 00:00:00 2001 From: Khushal P Soonderji Date: Thu, 22 Jan 2026 14:27:35 +0530 Subject: [PATCH] (20260122) Overtime won't be rounded now. --- cron/reports.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cron/reports.py b/cron/reports.py index e2a06f1..5b79bb0 100644 --- a/cron/reports.py +++ b/cron/reports.py @@ -453,7 +453,7 @@ def sync_attendance_to_tcaoff( continue # Update the attendance on TCAOFF: - hours_worked = work["work_seconds"] // (60 * 60) + hours_worked = work["work_seconds"] / (60.0 * 60.0) if hours_worked > 10.0: status = "OT" elif 7.5 < hours_worked <= 10.0: status = "P" elif 2.5 < hours_worked <= 5.0: status = "H"