(20260120) Corrected cron flow for in/out summary.
This commit is contained in:
+10
-2
@@ -761,6 +761,14 @@ def today_cron(
|
||||
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:
|
||||
except Exception as e:
|
||||
print("IN-OUT SUMMARY FETCH FAILED!")
|
||||
@@ -855,8 +863,8 @@ def set_scheduler(
|
||||
|
||||
# Populate the tasks in the scheduler:
|
||||
for h, m in zip(
|
||||
[8, 23, 15],
|
||||
[30, 30, 40]
|
||||
[8, 23],
|
||||
[30, 30]
|
||||
):
|
||||
scheduler.add_job(
|
||||
yesterday_cron,
|
||||
|
||||
Reference in New Issue
Block a user