(20260309) Added caching to avoid unchanged attendance calls and added logic to check for custom overtime thresholds.

This commit is contained in:
2026-03-09 20:24:24 +05:30
parent 6952bf73f5
commit 172cfdc92d
7 changed files with 92 additions and 26 deletions
@@ -32,6 +32,7 @@ async def main():
target_month = datetime.datetime.now(),
raise_exception = True
)
print(f"RAW RECORDS ({len(raw_records)}):", json.to_string(raw_records))
# Format the data for preview:
formatted_records = []
@@ -45,7 +46,7 @@ async def main():
formatted_records.append(cosec_data)
# Show the formatted data for debugging:
print(f"RECORDS ({len(formatted_records)}):", json.to_string(formatted_records))
print(f"FORMATTED RECORDS ({len(formatted_records)}):", json.to_string(formatted_records[:10]))
print(f"Found {len(formatted_records)} record(s).")
# Log out: