diff --git a/pwm b/pwm index 04e786bf0cf4da3b9042dc677367cf89b36e6352..c9a87c7560c82602b77816c102570210f0f8420e 100755 --- a/pwm +++ b/pwm @@ -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)