(20260110) Started writing code for working hours counting.

This commit is contained in:
2026-01-10 15:26:06 +05:30
parent 5bec648313
commit b1ff42d126
4 changed files with 211 additions and 109 deletions
+8 -1
View File
@@ -374,6 +374,7 @@ def team_add(
role: str,
username: str,
password: str,
application_notes: dict | list | str = None
) -> bool:
"""
@@ -388,9 +389,14 @@ def team_add(
:param role: The role of the team member in the organization.
:param username: The unique username of the team member. Cannot be the same as anyone else.
:param password: The password for this team member's login.
:return:
:param application_notes: Optional notes about the team member.
:return: True if successful, else False.
"""
# Ensure that JSON notes are converted to string:
if isinstance(application_notes, (list, dict)):
application_notes = json.to_string(application_notes, no_space = True)
# Make the API call:
response = requests.post(
url = tcaoff_creds["urls"]["teamAdd"],
@@ -406,6 +412,7 @@ def team_add(
"username": username,
"password": password,
"hierarchy": 1,
"applicantNotes": application_notes
}
)