Skip to content

Commit eaf1b04

Browse files
committed
Update vote email script
1 parent 4fab978 commit eaf1b04

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

utils/generate_vote_emails.py

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,11 @@
2323
# Make sure to use a pre-filled link here so it gets email out correctly
2424
voting_link = "https://docs.google.com/forms/d/e/1FAIpQLSdiAyutUO1H-vsbBdNBFgkz-OajEaMdkD8gNQ5H1v2-pJ9B6A/viewform?usp=pp_url&entry.1294356542={name}&entry.1001650979={org}&entry.1776959722={id}"
2525

26+
vote_name = "January 2025 Day 1"
27+
closing_time = "11:30am on January 08, 2025"
28+
time_zone = "US Central Time (UTC -6)"
29+
subject_string = vote_name + " Voting Link"
30+
2631
prev_ooe = 29
2732
dry_run = 1
2833

@@ -268,7 +273,7 @@ def main():
268273
message_text = """\
269274
Hi {name},
270275
<br><br>
271-
Voting is now open for the December 2024 Plenary Day 1 meeting. You may vote at this
276+
Voting is now open for the {vote_name} meeting. You may vote at this
272277
link:
273278
<br><br>
274279
{link}
@@ -282,15 +287,18 @@ def main():
282287
meeting up to the point where first voting block opened, your organization's
283288
vote will not be counted.
284289
<br><br>
285-
Voting will be open until 01:00pm on December 09, 2024 US Central Time (UTC -6).
290+
Voting will be open until {closing_time} in {time_zone}.
286291
<br><br>
287292
Thanks,
288293
<br>
289294
Wes Bland (MPI Forum Secretary)\
290-
""".format(name=name, link=text_link)
295+
""".format(name=name, link=text_link,
296+
vote_name=vote_name,
297+
closing_time=closing_time,
298+
time_zone=time_zone)
291299

292300
message = service.create_message(from_addr='"MPI Forum Mailer Bot" <[email protected]>',
293-
to_addr=email, msg=message_text, subject='December 2024 MPI Forum Plenary Day 1 Voting Link')
301+
to_addr=email, msg=message_text, subject=subject_string)
294302
if not dry_run or email == "[email protected]":
295303
message_id = service.send_message(message=message)
296304

0 commit comments

Comments
 (0)