File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change 1- """ Convert EQUELLA taxonomy export into Invenio users and names fixtures
1+ """Convert EQUELLA taxonomy export into Invenio users and names fixtures
22https://inveniordm.docs.cern.ch/customize/vocabularies/users/
33https://inveniordm.docs.cern.ch/customize/vocabularies/names/
44
2020
2121
2222def 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" ):
You can’t perform that action at this time.
0 commit comments