correcting the issue with participant_id authorization (BSMD or AGENCY check).

This commit is contained in:
Max Metz 2024-08-27 19:23:37 +02:00
parent f58665f761
commit 6eab98d2a1

View File

@ -20,7 +20,8 @@ def get_participant_id_dictionary():
# build a dictionary of id:item pairs, so one can select the respective participant
participants = json.loads(response)
participants = {items.get("id"):items for items in participants}
participants = {items.get("id"):{**items, "participant_id":items.get("id")} for items in participants}
assert all(["participant_id" in participant for k,participant in participants.items()])
return participants
def get_berth_id_dictionary():