1515# If modifying these scopes, delete the file token.pickle.
1616SCOPES = ["https://www.googleapis.com/auth/forms.body" , "https://www.googleapis.com/auth/gmail.send" ]
1717
18- prev_attendance_file_2 = "/Users/wbland/mpi/mpi-forum.github.io/_data/meetings/2023/10 /attendance.csv"
19- prev_attendance_file_1 = "/Users/wbland/mpi/mpi-forum.github.io/_data/meetings/2023/12 /attendance.csv"
20- curr_attendance_file = "/Users/wbland/mpi/mpi-forum.github.io/_data/meetings/2024/03 /attendance.csv"
21- curr_registration_file = "/Users/wbland/mpi/meeting-details/2024-03-mar /2024-03-18 -registration.csv"
18+ prev_attendance_file_2 = "/Users/wbland/mpi/mpi-forum.github.io/_data/meetings/2024/03 /attendance.csv"
19+ prev_attendance_file_1 = "/Users/wbland/mpi/mpi-forum.github.io/_data/meetings/2024/06 /attendance.csv"
20+ curr_attendance_file = "/Users/wbland/mpi/mpi-forum.github.io/_data/meetings/2024/09 /attendance.csv"
21+ curr_registration_file = "/Users/wbland/mpi/meeting-details/2024-09-sep /2024-09-23 -registration.csv"
2222transition_orgs_file = "/Users/wbland/mpi/mpi-forum.github.io/_data/orgs.csv"
2323# Make sure to use a pre-filled link here so it gets email out correctly
24- voting_link = "https://docs.google.com/forms/d/e/1FAIpQLSdt3ASbQeKD4hzKz2_TbVfSCfiQjbzefoHbD2R3IeevwxU3NA /viewform?usp=pp_url&entry.551305316 ={name}&entry.69773325 ={org}&entry.825554461 ={id}"
24+ voting_link = "https://docs.google.com/forms/d/e/1FAIpQLSf_koCcheoa8Kp9YhbuOy0_pDwPw3z1VJqi92Jz0QGNguJAVQ /viewform?usp=pp_url&entry.1231116215 ={name}&entry.1052989449 ={org}&entry.1369831249 ={id}"
2525
2626prev_ooe = 29
2727dry_run = 1
@@ -73,14 +73,14 @@ def send_message(self, *, message):
7373
7474class GmailSMTP ():
7575 def __init__ (self ):
76- if not os .path .exists ('credentials .json' ):
77- print ("Make sure to run this script with credentials .json in the current directory." )
76+ if not os .path .exists ('vote_emailer_credentials .json' ):
77+ print ("Make sure to run this script with vote_emailer_credentials .json in the current directory." )
7878 print ("If you don't have that file, you can set one up and download it here:" )
7979 print ()
8080 print ("https://console.developers.google.com/apis/credentials" )
8181 print (
"Make sure to be logged in as [email protected] and" )
8282 print ("download the GMail API key as a JSON file. Put it in this" )
83- print ("directory and name it credentials .json" )
83+ print ("directory and name it vote_emailer_credentials .json" )
8484 exit (1 )
8585
8686 creds = None
@@ -96,7 +96,7 @@ def __init__(self):
9696 creds .refresh (Request ())
9797 else :
9898 flow = InstalledAppFlow .from_client_secrets_file (
99- 'credentials .json' , SCOPES )
99+ 'vote_emailer_credentials .json' , SCOPES )
100100 creds = flow .run_local_server (port = 0 )
101101 # Save the credentials for the next run
102102 with open ('token.pickle' , 'wb' ) as token :
0 commit comments