(20260217) Ready to test on production now
This commit is contained in:
@@ -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
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user