(20260309) Added caching to avoid unchanged attendance calls and added logic to check for custom overtime thresholds.
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user