(20260216) Attendance mark is blazing fast now

This commit is contained in:
2026-02-16 14:51:21 +05:30
parent 3079a8f6f0
commit df92fb08e9
2 changed files with 15 additions and 12 deletions
+14 -11
View File
@@ -96,17 +96,20 @@ from icecream import IceCreamDebugger
class AsyncTheCAOffice:
# URLs:
LOGIN_URL = r"https://api.thecaoffice.com/ca/login"
LOGOUT_URL = r"https://api.thecaoffice.com/user/logout"
BRANCH_LIST_URL = r"https://api.thecaoffice.com/commons/branch/list"
BRANCH_ADD_URL = r"https://api.thecaoffice.com/commons/branch/add"
DEPT_LIST_URL = r"https://api.thecaoffice.com/commons/departments/list"
DEPT_ADD_URL = r"https://api.thecaoffice.com/commons/departments/add"
TEAM_LIST_URL = r"https://api.thecaoffice.com/team/list"
TEAM_ADD_URL = r"https://api.thecaoffice.com/team/add"
TEAM_UPDATE_URL = r"https://api.thecaoffice.com/team/update"
ATTENDANCE_LIST_URL = r"https://api.thecaoffice.com/user/attendance/register"
ATTENDANCE_MARK_URL = r"https://api.thecaoffice.com/user/attendance/mark"
BASE_URL = r"https://api.thecaoffice.com"
LOCALHOST_URL = r"http://127.0.0.1:5205"
# ---
LOGIN_URL = f"{BASE_URL}/ca/login"
LOGOUT_URL = f"{BASE_URL}/user/logout"
BRANCH_LIST_URL = f"{BASE_URL}/commons/branch/list"
BRANCH_ADD_URL = f"{BASE_URL}/commons/branch/add"
DEPT_LIST_URL = f"{BASE_URL}/commons/departments/list"
DEPT_ADD_URL = f"{BASE_URL}/commons/departments/add"
TEAM_LIST_URL = f"{BASE_URL}/team/list"
TEAM_ADD_URL = f"{BASE_URL}/team/add"
TEAM_UPDATE_URL = f"{BASE_URL}/team/update"
ATTENDANCE_LIST_URL = f"{BASE_URL}/user/attendance/register"
ATTENDANCE_MARK_URL = f"{BASE_URL}/user/attendance/mark"
def __init__(
self,
File diff suppressed because one or more lines are too long