fixed crash with invalid email to GA when notifying them their helproom staff has changed.

This commit is contained in:
murraydr 2023-11-01 12:19:35 -04:00
parent 3675362770
commit 8edd0566b8
4 changed files with 17 additions and 2 deletions

View File

@ -1 +1,8 @@
Put any discovered bugs or requests for new features here in this document so they aren't forgotten and I can fix/implement them when I'm in the office on Wednesdays.
Put any discovered bugs or requests for new features here in this document so they aren't forgotten and I can fix/implement them when I'm in the office on Wednesdays.
futureproofing calling float on single element helperfunctions.py 142
add email toggle to main requests
crash on reject

View File

@ -410,6 +410,7 @@ def generateEmails(requestList):
print(names,names!="NoShift")
if names!="NoShift":
recipient = nameToID(names[0])
recipient = req[4]+"@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:])

View File

@ -1 +1 @@
2023-10-25 15:47:03.083140
2023-11-01 09:40:03.046218

View File

@ -1,3 +1,10 @@
Timestamp,Requestor,Section,Dates,Replacement,Reason
2023-10-25 16:36:16.765000,austi143,Sec 11,10/25,lnumehak,Covid vax side effects
2023-10-25 19:04:11.218000,allarde2,Sec 34,10/26,bhardw41,I have strep throat.
2023-10-26 13:27:58.149000,bhardw41,R_HR1;R_HR2;Sec 35,10/26,,Illness
2023-10-29 22:11:26.524000,allarde2,S_HR1;S_HR2,10/29,,Strep Throat
2023-10-29 22:33:50.788000,burgejae,S_HR1;S_HR2,10/29,bhardw41,Not feeling well
2023-10-30 03:49:03.509000,straskra,Sec 24,10/30,,Mom is visiting from Hawaii and wants to spend some time with me
2023-10-30 11:24:57.749000,sonarsoh,Sec 17,10/30,kumararn,Driving back from home
2023-10-31 14:36:00.255000,khanalpr,Sec 51,08/31,,Fever and body pain due to vaccination.
2023-10-31 16:16:16.466000,guruswa1,T_HR1;T_HR2;Sec 6,10/31,rahman64,Sick with migraine and fever. Need time to rest and recover.

1 Timestamp Requestor Section Dates Replacement Reason
2 2023-10-25 16:36:16.765000 austi143 Sec 11 10/25 lnumehak Covid vax side effects
3 2023-10-25 19:04:11.218000 allarde2 Sec 34 10/26 bhardw41 I have strep throat.
4 2023-10-26 13:27:58.149000 bhardw41 R_HR1;R_HR2;Sec 35 10/26 Illness
5 2023-10-29 22:11:26.524000 allarde2 S_HR1;S_HR2 10/29 Strep Throat
6 2023-10-29 22:33:50.788000 burgejae S_HR1;S_HR2 10/29 bhardw41 Not feeling well
7 2023-10-30 03:49:03.509000 straskra Sec 24 10/30 Mom is visiting from Hawaii and wants to spend some time with me
8 2023-10-30 11:24:57.749000 sonarsoh Sec 17 10/30 kumararn Driving back from home
9 2023-10-31 14:36:00.255000 khanalpr Sec 51 08/31 Fever and body pain due to vaccination.
10 2023-10-31 16:16:16.466000 guruswa1 T_HR1;T_HR2;Sec 6 10/31 rahman64 Sick with migraine and fever. Need time to rest and recover.