(20260217) Fixed async. issue.

This commit is contained in:
2026-02-17 17:37:25 +05:30
parent f4fd75db60
commit 1bb17513a0
-2
View File
@@ -267,12 +267,10 @@ async def sync_branches_to_tcaoff(
tcaoff_branches = await tcaoff_client.branch_list() tcaoff_branches = await tcaoff_client.branch_list()
tcaoff_branches = [_["branch_name"].lower() for _ in tcaoff_branches] tcaoff_branches = [_["branch_name"].lower() for _ in tcaoff_branches]
tcaoff_branches = list(set(tcaoff_branches)) tcaoff_branches = list(set(tcaoff_branches))
print("TCAOFF BRANCHES: ", tcaoff_branches)
# Get only the branch names from Cosec: # Get only the branch names from Cosec:
cosec_branches = [tcaoff_client.remove_special_chars(_["Branch Name"]) for _ in cosec_muster_roll["report"]] cosec_branches = [tcaoff_client.remove_special_chars(_["Branch Name"]) for _ in cosec_muster_roll["report"]]
cosec_branches = list(set(cosec_branches)) cosec_branches = list(set(cosec_branches))
print("COSEC BRANCHES: ", cosec_branches)
# Loop through the data from Cosec and add missing branches to TCAOFF: # Loop through the data from Cosec and add missing branches to TCAOFF:
for cosec_branch in cosec_branches: for cosec_branch in cosec_branches: