diff --git a/helperFunctions.py b/helperFunctions.py index 7f510c3..55eddf9 100644 --- a/helperFunctions.py +++ b/helperFunctions.py @@ -409,8 +409,7 @@ def generateEmails(requestList): names=getAllNamesFromSection(s,date)[0] print(names,names!="NoShift") if names!="NoShift": - recipient = nameToID(names[0]) - recipient = req[4]+"@msu.edu" + recipient = nameToID(names[0])+"@msu.edu" subject="Change in helproom staff on "+date message="There has been a substitution in your helproom section: "+s+".\nYour ULAs on "+date+" are "+", ".join(names[1:])