Skip to content

Commit

Permalink
Update user_association.py (#129)
Browse files Browse the repository at this point in the history
Co-authored-by: Jordan Prescott <[email protected]>
  • Loading branch information
Chopped4Life and Jordan-Prescott authored Oct 30, 2024
1 parent ba52576 commit f2c56fe
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion odins_spear/scripts/user_association.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,10 @@ def main(api, service_provider_id: str, group_id: str, user_id: str):
USER_DATA["aliases"] = user["aliases"]

pick_up_group = api.get.call_pickup_group_user(service_provider_id, group_id, user_id)
USER_DATA["pickUpGroup"] = pick_up_group[0]["name"]
try:
USER_DATA["pickUpGroup"] = pick_up_group[0]["name"]
except IndexError:
USER_DATA["pickUpGroup"] = None

hunt_groups = api.get.group_hunt_group_user(service_provider_id, group_id, user_id)
for hg in tqdm(hunt_groups, desc="Fetching Hunt Groups"):
Expand Down

0 comments on commit f2c56fe

Please sign in to comment.