Skip to content

Commit cdefd84

Browse files
committed
docs: comment edits
1 parent c6af1b0 commit cdefd84

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

taxos/users.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
""" Convert EQUELLA taxonomy export into Invenio users and names fixtures
1+
"""Convert EQUELLA taxonomy export into Invenio users and names fixtures
22
https://inveniordm.docs.cern.ch/customize/vocabularies/users/
33
https://inveniordm.docs.cern.ch/customize/vocabularies/names/
44
@@ -20,7 +20,7 @@
2020

2121

2222
def convert_to_vocabs(
23-
people: list[dict[str, str]]
23+
people: list[dict[str, str]],
2424
) -> tuple[list[dict[str, Any]], list[dict[str, Any]]]:
2525
"""convert Workday JSON into Invenio users
2626
@@ -38,7 +38,6 @@ def convert_to_vocabs(
3838
if p["username"] in usernames:
3939
continue
4040

41-
# using dict access & not .get() because we want KeyErrors to highlight problems
4241
# employees have work_email & students have inst_email, some temp workers have neither
4342
email: str | None = p.get("work_email") or p.get("inst_email")
4443
if not email or not email.endswith("@cca.edu"):

0 commit comments

Comments
 (0)