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"