Skip to content

Commit 829b100

Browse files
committed
Multiple corrections
1 parent 7160574 commit 829b100

File tree

3 files changed

+14
-13
lines changed

3 files changed

+14
-13
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ _site/
77
.jekyll-metadata
88
Gemfile.lock
99
utils/credentials.json
10+
utils/vote_emailer_credentials.json
1011
utils/token.*
1112
utils/ballot.csv
1213
utils/votes.csv

_data/meetings/2024/09/votes.csv

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
issue_number,pr_number,topic,type,yes,no,abstain,missed
22
844,,"Update Procedures for Side Document Versions",no-no
3-
844,,"Update Procedures for Side Document Versions",procedures
3+
844,,"Update Procedures for Side Document Versions",procedure
44
760,904,"RMA - Contradicting rules about use of MPI_REQUEST_FREE",errata
55
838,964,"Text for MPI_GET_HW_RESOURCE_INFO needs clarification",no-no
66
823,955,"Make examples use URI format as described in MPI_GET_HW_RESOURCE_INFO",no-no
77
824,957,"Add example for MPI_GET_HW_RESOURCE_INFO",no-no
8-
838,964,"Text for MPI_GET_HW_RESOURCE_INFO needs clarification (if no-no passes)",1st
9-
823,955,"Make examples use URI format as described in MPI_GET_HW_RESOURCE_INFO (if no-no passes)",1st
10-
824,957,"Add example for MPI_GET_HW_RESOURCE_INFO (if no-no passes)",1st
8+
838,964,"Text for MPI_GET_HW_RESOURCE_INFO needs clarification",1st
9+
823,955,"Make examples use URI format as described in MPI_GET_HW_RESOURCE_INFO",1st
10+
824,957,"Add example for MPI_GET_HW_RESOURCE_INFO",1st
1111
809,0,"Memory Allocation Kinds side document",1st

utils/generate_vote_emails.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,13 @@
1515
# If modifying these scopes, delete the file token.pickle.
1616
SCOPES = ["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"
2222
transition_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

2626
prev_ooe = 29
2727
dry_run = 1
@@ -73,14 +73,14 @@ def send_message(self, *, message):
7373

7474
class 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

Comments
 (0)