From 2557b349a6e5d3e6a0a86f3295073be8bb15355d Mon Sep 17 00:00:00 2001 From: yatmesh Date: Thu, 22 Jan 2026 15:25:00 +0530 Subject: [PATCH] (20260122)- handle the user key --- cron/reports.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cron/reports.py b/cron/reports.py index 5b79bb0..e90c60a 100644 --- a/cron/reports.py +++ b/cron/reports.py @@ -313,7 +313,8 @@ def sync_attendance_to_tcaoff( if not cosec_notes: continue # print("COSEC NOTES:", cosec_notes) print("Cosec Notes:", cosec_notes) - cosec_id_to_tcaoff_team[cosec_notes["User ID"]] = t + # cosec_id_to_tcaoff_team[cosec_notes["User ID"]] = t + cosec_id_to_tcaoff_team[cosec_notes.get("User ID") or cosec_notes.get("UserID")] = t print("COSEC to TCAOFF TEAMS:", json.to_string(cosec_id_to_tcaoff_team)) # print("Hi, attendance!")