(20260217) Ready to test on production now

This commit is contained in:
2026-02-17 15:26:19 +05:30
parent 64a6eac20f
commit 1fe8b1e68c
4 changed files with 26 additions and 8 deletions
+5 -3
View File
@@ -570,10 +570,12 @@ class AsyncTheCAOffice:
if response.status_code not in [200]:
try:
response_json = response.json()
print("TCAOFF Attendance-Mark:", json.to_string(response_json))
# print("TCAOFF Attendance-Mark:", json.to_string(response_json))
self._printer("TCAOFF Attendance-Mark", response_json)
except Exception as e:
print("TCAOFF Attendance-Mark:", e)
print("TCAOFF Attendance-Mark:", response.content)
# print("TCAOFF Attendance-Mark:", e)
# print("TCAOFF Attendance-Mark:", response.content)
self._printer("TCAOFF Attendance-Mark", e, response.content)
print("Payload:", json.to_string(json_payload))
# If the call succeeded: