Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 8b922d6d authored by Samuel Mimram's avatar Samuel Mimram
Browse files

Remove alco specifics.

parent 5ac66a95
Branches
No related tags found
No related merge requests found
Pipeline #1185060 passed
......@@ -84,13 +84,6 @@ for data in events:
f.write(mail)
f.close()
if (team.lower() == "alco"):
prev_semnextnext = prevsem_next
prevsem_next = prev_sem
prev_sem = "Recall that next seminar will be on " + datestring + " by " + speaker
prev_sem += (": " + title) if title != "TBA" else ""
prev_sem += "."
# Generate mail for a team
if date - datetime.now(tz) > timedelta():
f = open("template.mail")
......@@ -111,24 +104,6 @@ for data in events:
f.write(mail)
f.close()
# Generate possibly next talk mail
# (currently only for alco)
if (team.lower() == "alco"):
if date - datetime.now(tz) > timedelta():
f = open("template-next.mail")
mail = f.read()
f.close()
mail = mail.replace("PREVSEM", prev_sem)
mail = mail.replace("DATENEXT", capitalize_first(datestringnext))
mail = mail.replace("ROOMNEXT", roomnext)
mail = mail.replace("SPEAKERNEXT", speakernext)
mail = mail.replace("TITLENEXT", titlenext)
mail = mail.replace("ABSTRACTNEXT", abstractnext)
mail = mail.replace("NEXTSEMNEXT",prevsem_next)
f = open("../seminar/mailnextalco.txt", "w")
f.write(mail)
f.close()
# Generate tweet
if date - datetime.now(tz) > timedelta():
f = open("template.tweet")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment