(20260217) Ready to test on production now

This commit is contained in:
2026-02-17 15:35:59 +05:30
parent 1fe8b1e68c
commit 079d873a6c
2 changed files with 1 additions and 4 deletions
-3
View File
@@ -570,11 +570,8 @@ class AsyncTheCAOffice:
if response.status_code not in [200]: if response.status_code not in [200]:
try: try:
response_json = response.json() response_json = response.json()
# print("TCAOFF Attendance-Mark:", json.to_string(response_json))
self._printer("TCAOFF Attendance-Mark", response_json) self._printer("TCAOFF Attendance-Mark", response_json)
except Exception as e: except Exception as e:
# print("TCAOFF Attendance-Mark:", e)
# print("TCAOFF Attendance-Mark:", response.content)
self._printer("TCAOFF Attendance-Mark", e, response.content) self._printer("TCAOFF Attendance-Mark", e, response.content)
print("Payload:", json.to_string(json_payload)) print("Payload:", json.to_string(json_payload))
+1 -1
View File
@@ -721,7 +721,7 @@ async def sync_attendance_to_tcaoff(
yield lst[i:i + size] yield lst[i:i + size]
count = 0 count = 0
for chunk in chunks(tasks[:], size = 10): for chunk in chunks(tasks[:], size = 25):
count += 1 count += 1
printer("Task Chunk:", count) printer("Task Chunk:", count)
_res = await asyncio.gather(*chunk) _res = await asyncio.gather(*chunk)