Skip to content
Snippets Groups Projects
Commit ca6bddf4 authored by Florent Gluck's avatar Florent Gluck
Browse files

Proposition of a new strategy to guess the login AAI from the email

parent 63bdcafb
No related branches found
No related tags found
No related merge requests found
Pipeline #19743 passed
......@@ -64,6 +64,11 @@ def emails_to_ids(emails: List[str], headers: Dict[str, str]) -> List[int]:
# Dirty and hackish way that attempts to extract the username from the email.
# It's inefficient, but currently there is now way to reliably obtain
# the username from the email.
# TODO: new strategy:
# - stop when we reach the "." or when we get more than 1 result
# Example of tricky users:
# pierre-louis.roden@etu.hesge.ch -> login AAI: pierrelo.roden
# joel.ferreirapinto@etu.hesge.ch -> login AAI: joelfili.ferreira
username = email.split("@")[0]
#print("Email: ",email)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment