(20260121) Corrected cron flow for in/out summary.
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
# ---------------------------------------------------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user