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

This commit is contained in:
2026-01-20 18:16:05 +05:30
parent fa12e4146b
commit 58c47475d6
2 changed files with 11 additions and 3 deletions
+10 -2
View File
@@ -761,6 +761,14 @@ def today_cron(
cache_file = in_out_summary_cache_file cache_file = in_out_summary_cache_file
) )
# Sync data between Cosec and TCAOFF:
if success:
print("IN/OUT SUMMARY: Sync'ing with TCAOFF")
sync_attendance_to_tcaoff(
tcaoff_creds = tcaoff_creds,
cosec_in_out_summary = json.from_file(prev_day_in_out_summary_cache_file),
)
# If something goes wrong: # If something goes wrong:
except Exception as e: except Exception as e:
print("IN-OUT SUMMARY FETCH FAILED!") print("IN-OUT SUMMARY FETCH FAILED!")
@@ -855,8 +863,8 @@ def set_scheduler(
# Populate the tasks in the scheduler: # Populate the tasks in the scheduler:
for h, m in zip( for h, m in zip(
[8, 23, 15], [8, 23],
[30, 30, 40] [30, 30]
): ):
scheduler.add_job( scheduler.add_job(
yesterday_cron, yesterday_cron,
File diff suppressed because one or more lines are too long