(20260217) Ready to test on prodcuction now
This commit is contained in:
+15
-4
@@ -459,6 +459,21 @@ class AsyncTheCAOffice:
|
||||
:return: True if successful, else False.
|
||||
"""
|
||||
|
||||
# print("TEAM ADD:", json.to_string({
|
||||
# "branchId": branch_id,
|
||||
# "idDepartment": dept_id,
|
||||
# "reportingTo": reporting_to,
|
||||
# "name": team_name,
|
||||
# "email": email,
|
||||
# "phoneNo": phone_no,
|
||||
# "role": role,
|
||||
# "username": username,
|
||||
# "password": password,
|
||||
# "hierarchy": 1,
|
||||
# "applicantNotes": applicant_notes
|
||||
# }))
|
||||
# return False
|
||||
|
||||
# # Ensure that JSON notes are converted to string:
|
||||
# if isinstance(applicant_notes, (list, dict)):
|
||||
# applicant_notes = json.to_string(applicant_notes, no_space = True)
|
||||
@@ -529,8 +544,6 @@ class AsyncTheCAOffice:
|
||||
:return: True if the attendance was marked, else False.
|
||||
"""
|
||||
|
||||
start_time = time.time()
|
||||
|
||||
# Prepare the payload:
|
||||
json_payload = {
|
||||
"date": (
|
||||
@@ -569,7 +582,6 @@ class AsyncTheCAOffice:
|
||||
"Attendance marked.",
|
||||
user_id,
|
||||
)
|
||||
print("ONE TIME TAKEN:", time.time() - start_time)
|
||||
return True
|
||||
|
||||
# If the call failed:
|
||||
@@ -581,7 +593,6 @@ class AsyncTheCAOffice:
|
||||
user_id,
|
||||
response_json
|
||||
)
|
||||
print("ONE TIME TAKEN:", time.time() - start_time)
|
||||
return False
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user