correcting the issue with participant_id authorization (BSMD or AGENCY check).
This commit is contained in:
parent
f58665f761
commit
6eab98d2a1
@ -20,7 +20,8 @@ def get_participant_id_dictionary():
|
|||||||
|
|
||||||
# build a dictionary of id:item pairs, so one can select the respective participant
|
# build a dictionary of id:item pairs, so one can select the respective participant
|
||||||
participants = json.loads(response)
|
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
|
return participants
|
||||||
|
|
||||||
def get_berth_id_dictionary():
|
def get_berth_id_dictionary():
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user