(20260121) Corrected cron flow for in/out summary.

This commit is contained in:
2026-01-21 17:23:15 +05:30
parent 58c47475d6
commit dd6b9fb69a
4 changed files with 299 additions and 1 deletions
+3
View File
@@ -312,6 +312,7 @@ def sync_attendance_to_tcaoff(
cosec_notes = app_notes.get("cosec", {})
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
print("COSEC to TCAOFF TEAMS:", json.to_string(cosec_id_to_tcaoff_team))
@@ -773,6 +774,7 @@ def today_cron(
except Exception as e:
print("IN-OUT SUMMARY FETCH FAILED!")
print("EXCEPTION:", e)
raise
# Log out from TCAOFF:
tcaoff.logout(tcaoff_creds)
@@ -782,6 +784,7 @@ def today_cron(
print("REPORT CRON FAILED LOOP!")
print("EXCEPTION:", e)
tcaoff.logout(tcaoff_creds)
raise
# ---------------------------------------------------------------------------------------------------------------------