Skip to content

Commit

Permalink
sort by last and firstname
Browse files Browse the repository at this point in the history
  • Loading branch information
olikami committed May 10, 2022
1 parent 47cc09b commit 3c2b307
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ def name_formatter(nickname, firstname, lastname):
):
people.append(get_people_details(person_id, group_id))

people.sort(key=lambda p: p["last_name"])
people.sort(key=lambda p: p["last_name"] + p["first_name"])

ahv_regex = re.compile("\d{3}.\d{4}.\d{4}.\d{2}")

Expand All @@ -102,8 +102,6 @@ def name_formatter(nickname, firstname, lastname):
print(f"Total: {len(people)}")
print()

exit(0)

for p in people_without_ahv:
f_name = name_formatter(p["nickname"], p["first_name"], p["last_name"])
url = p["href"].replace(".json", "")
Expand Down

0 comments on commit 3c2b307

Please sign in to comment.