Skip to content
Snippets Groups Projects
Commit 0e2557ce authored by Alexander Moras's avatar Alexander Moras
Browse files

Add renewal reminder options for societies and associates

parent 134ac336
No related branches found
No related tags found
No related merge requests found
......@@ -367,22 +367,24 @@ def deleteUser(peopleList):
def reminderMenu():
print("")
print("Double check https://sucs.org/Admin/SU that everyone that has paid to renew has been marked as renwed. This tool doesn't do that job yet!")
print("Double check https://sucs.org/Admin/SU that everyone that has paid to renew has been marked as renewed. This tool doesn't do that job yet!")
print("")
print("1. View a list of accounts that aren't marked as renewed in the DB")
print("2 Semd email to all reminding them to renew")
print("2.1 Semd email to all students reminding them to renew")
print("2 Send email to ALL reminding them to renew")
print("2.1 Send email to all STUDENTS reminding them to renew")
print("2.2 Send email to all SOCIETIES reminding them to renew")
print("2.3 Send email to all ASSOCIATES reminding them to renew")
print("0. Return to main menu")
option = input("Option: ")
if option == "1":
for student in studentsBad:
print(str(student[0]) + " because the DB says: " + str(student[1]))
print(str(student[0]) + " last paid: " + str(student[1]))
for soc in societiesBad:
print(str(soc[0]) + " because the DB says: " + str(soc[1]))
print(str(soc[0]) + " last paid: " + str(soc[1]))
for ass in associatesBad:
print(str(ass[0]) + " because the DB says: " + str(ass[1]))
print(str(ass[0]) + " last paid: " + str(ass[1]))
reminderMenu()
if option == "2":
if len(studentsBad) > 0:
......@@ -394,6 +396,12 @@ def reminderMenu():
if option == "2.1":
if len(studentsBad) > 0:
sendReminderEmail(studentsBad)
if option == "2.2":
if len(societiesBad) > 0:
sendReminderEmail(societiesBad)
if option == "2.3":
if len(associatesBad) > 0:
sendReminderEmail(associatesBad)
if option == "0":
mainMenu()
else:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment