Skip to content

Commit 367b753

Browse files
committed
Update scripts
1 parent b77a7d9 commit 367b753

File tree

3 files changed

+16
-13
lines changed

3 files changed

+16
-13
lines changed

utils/generate_authors.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
startYear = 2023
1010
currYear = 2024
1111
startMonth = 10
12-
currMonth = 9
12+
currMonth = 12
1313

1414
def main():
1515
token = subprocess.run(['gh','auth','token'], stdout=subprocess.PIPE).stdout.decode('utf-8').strip()
@@ -19,6 +19,7 @@ def main():
1919
attendeeList = {}
2020
orgList = {}
2121

22+
print("=== Getting GitHub participants ===")
2223
# Get GitHub participants
2324
gitHubUsers = []
2425
startDate = datetime.datetime(startYear, startMonth, 1)
@@ -37,6 +38,7 @@ def main():
3738
else:
3839
attendeeList[person] = 1
3940

41+
print("=== Getting meeting participants ===")
4042
# Get meeting participants
4143
for year in range(startYear, currYear+1):
4244
for month in range(1, 13):

utils/generate_rcm_reviewers.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,15 @@
77
"../_data/meetings/2023/12/attendance.csv",
88
"../_data/meetings/2024/03/attendance.csv",
99
"../_data/meetings/2024/06/attendance.csv",
10-
"../_data/meetings/2024/09/attendance.csv"]
10+
"../_data/meetings/2024/09/attendance.csv",
11+
"../_data/meetings/2024/12/attendance.csv"]
1112

1213
prevDetails = ["../../meeting-details/2023-10-oct/2023-10-31-registration.csv",
1314
"../../meeting-details/2023-12-dec/2023-12-04-registration.csv",
1415
"../../meeting-details/2024-03-mar/2024-03-18-registration.csv",
1516
"../../meeting-details/2024-06-jun/2024-06-17-registration.csv",
16-
"../../meeting-details/2024-09-sep/2024-09-23-registration.csv"]
17+
"../../meeting-details/2024-09-sep/2024-09-23-registration.csv",
18+
"../../meeting-details/2024-12-dec/2024-12-09-registration.csv"]
1719

1820
def main():
1921
attendeeList = {}

utils/generate_vote_emails.py

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,15 @@
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/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"
18+
prev_attendance_file_2 = "/Users/wbland/mpi/mpi-forum.github.io/_data/meetings/2024/06/attendance.csv"
19+
prev_attendance_file_1 = "/Users/wbland/mpi/mpi-forum.github.io/_data/meetings/2024/09/attendance.csv"
20+
curr_attendance_file = "/Users/wbland/mpi/mpi-forum.github.io/_data/meetings/2024/12/attendance.csv"
21+
curr_registration_file = "/Users/wbland/mpi/meeting-details/2024-12-dec/2024-12-09-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/1FAIpQLSdoohrwsfTNjhMG9QFNTlNIYl2RoDSLcOWiy1KYUxSkhoAuhg/viewform?usp=pp_url&entry.1374525185={name}&entry.632506003={org}&entry.467452776={id}"
24+
voting_link = "https://docs.google.com/forms/d/e/1FAIpQLSfViPA_t0cySFloL0sLFMqhklEuMLF6yByHt4Xa01vzUHi2Ag/viewform?usp=pp_url&entry.1086213497={name}&entry.1980873030={org}&entry.730538081={id}"
2525

26-
prev_ooe = 29
26+
prev_ooe = 30
2727
dry_run = 1
2828

2929
from email import encoders
@@ -268,7 +268,7 @@ def main():
268268
message_text = """\
269269
Hi {name},
270270
<br><br>
271-
Voting is now open for the September 2024 Plenary Day 1 meeting. You may vote at this
271+
Voting is now open for the December 2024 Plenary Day 1 meeting. You may vote at this
272272
link:
273273
<br><br>
274274
{link}
@@ -282,16 +282,15 @@ def main():
282282
meeting up to the point where first voting block opened, your organization's
283283
vote will not be counted.
284284
<br><br>
285-
Voting will be open until 09:30am on September 23, 2024 Perth Time (UTC +8) /
286-
8:30pm on September 24, 2024 US Central Time (UTC -5).
285+
Voting will be open until 01:00pm on December 09, 2024 US Central Time (UTC -6).
287286
<br><br>
288287
Thanks,
289288
<br>
290289
Wes Bland (MPI Forum Secretary)\
291290
""".format(name=name, link=text_link)
292291

293292
message = service.create_message(from_addr='"MPI Forum Mailer Bot" <[email protected]>',
294-
to_addr=email, msg=message_text, subject='September 2024 MPI Forum Plenary Day 1 Voting Link')
293+
to_addr=email, msg=message_text, subject='December 2024 MPI Forum Plenary Day 1 Voting Link')
295294
if not dry_run or email == "[email protected]":
296295
message_id = service.send_message(message=message)
297296

0 commit comments

Comments
 (0)