Browse Source

add link for upcoming events to email

Justin Tracey 4 years ago
parent
commit
06d7b5d3df
1 changed files with 10 additions and 1 deletions
  1. 10 1
      vice-speaker-rotator.py

+ 10 - 1
vice-speaker-rotator.py

@@ -3,6 +3,15 @@ from datetime import date,timedelta
 import sys, argparse
 from argparse import RawTextHelpFormatter
 
+# text appended to the end of generated emails
+email_body = """
+Full speaker schedule:
+https://cs.uwaterloo.ca/twiki/view/CrySP/SpeakerSchedule
+
+Other upcoming events:
+https://cs.uwaterloo.ca/twiki/view/CrySP/UpcomingEvents
+"""
+
 def str_to_date(string_date):
     return date(*[int(s) for s in string_date.split('-')])
 
@@ -160,7 +169,7 @@ class CryspCalendar:
             else:
                 emailstr += note
             emailstr += '\n'
-        emailstr += '\nhttps://cs.uwaterloo.ca/twiki/view/CrySP/SpeakerSchedule\n'
+        emailstr += email_body
         return emailstr
 
 def parse_constraintsfile(filename):