(20260217) Fixed async. issue.
This commit is contained in:
@@ -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:
|
||||||
|
|||||||
Reference in New Issue
Block a user