(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
|
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,
|
||||||
|
|||||||
+1
-1
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user