Loading sucsam.py +38 −25 Original line number Diff line number Diff line Loading @@ -382,10 +382,14 @@ def reminderMenu(): print(str(ass[0]) + " because the DB says: " + str(ass[1])) reminderMenu() if option == "2": if len(studentsBad) > 0: sendReminderEmail(studentsBad) if len(societiesBad) > 0: sendReminderEmail(societiesBad) if len(associatesBad) > 0: sendReminderEmail(associatesBad) if option == "2.1": if len(studentsBad) > 0: sendReminderEmail(studentsBad) if option == "0": mainMenu() Loading Loading @@ -425,29 +429,38 @@ def deleteMenu(deleteArray): print("\x1b[1;31mInvalid user.\x1b[0m") deleteMenu(deleteArray) elif option == "3": if len(studentsBad) > 0: for student in studentsBad: print("Adding " + str(student[0]) + " to the list because the DB says: " + str(student[1])) deleteArray.append(student[0]) if len(societiesBad) > 0: for soc in societiesBad: print("Adding " + str(soc[0]) + " to the list because the DB says: " + str(soc[1])) deleteArray.append(soc[0]) if len(societiesBad) > 0: for ass in associatesBad: print("Adding " + str(ass[0]) + " to the list because the DB says: " + str(ass[1])) deleteArray.append(ass[0]) deleteMenu(deleteArray) elif option == "3.1": if len(studentsBad) > 0: for student in studentsBad: print("Adding " + str(student[0]) + " to the list because the DB says: " + str(student[1])) deleteArray.append(student[0]) print("No students look like the need deleting.") deleteMenu(deleteArray) elif option == "3.5": if len(studentsBad) > 0: for student in studentsBad: if student[1] == "delete": print("Adding " + str(student[0]) + " to the list because the DB says: " + str(student[1])) deleteArray.append(student[0]) if len(societiesBad) > 0: for soc in societiesBad: if soc[1] == "delete": print("Adding " + str(soc[0]) + " to the list because the DB says: " + str(soc[1])) deleteArray.append(soc[0]) if len(associatesBad) > 0: for ass in associatesBad: if ass[1] == "delete": print("Adding " + str(ass[0]) + " to the list because the DB says: " + str(ass[1])) Loading Loading
sucsam.py +38 −25 Original line number Diff line number Diff line Loading @@ -382,10 +382,14 @@ def reminderMenu(): print(str(ass[0]) + " because the DB says: " + str(ass[1])) reminderMenu() if option == "2": if len(studentsBad) > 0: sendReminderEmail(studentsBad) if len(societiesBad) > 0: sendReminderEmail(societiesBad) if len(associatesBad) > 0: sendReminderEmail(associatesBad) if option == "2.1": if len(studentsBad) > 0: sendReminderEmail(studentsBad) if option == "0": mainMenu() Loading Loading @@ -425,29 +429,38 @@ def deleteMenu(deleteArray): print("\x1b[1;31mInvalid user.\x1b[0m") deleteMenu(deleteArray) elif option == "3": if len(studentsBad) > 0: for student in studentsBad: print("Adding " + str(student[0]) + " to the list because the DB says: " + str(student[1])) deleteArray.append(student[0]) if len(societiesBad) > 0: for soc in societiesBad: print("Adding " + str(soc[0]) + " to the list because the DB says: " + str(soc[1])) deleteArray.append(soc[0]) if len(societiesBad) > 0: for ass in associatesBad: print("Adding " + str(ass[0]) + " to the list because the DB says: " + str(ass[1])) deleteArray.append(ass[0]) deleteMenu(deleteArray) elif option == "3.1": if len(studentsBad) > 0: for student in studentsBad: print("Adding " + str(student[0]) + " to the list because the DB says: " + str(student[1])) deleteArray.append(student[0]) print("No students look like the need deleting.") deleteMenu(deleteArray) elif option == "3.5": if len(studentsBad) > 0: for student in studentsBad: if student[1] == "delete": print("Adding " + str(student[0]) + " to the list because the DB says: " + str(student[1])) deleteArray.append(student[0]) if len(societiesBad) > 0: for soc in societiesBad: if soc[1] == "delete": print("Adding " + str(soc[0]) + " to the list because the DB says: " + str(soc[1])) deleteArray.append(soc[0]) if len(associatesBad) > 0: for ass in associatesBad: if ass[1] == "delete": print("Adding " + str(ass[0]) + " to the list because the DB says: " + str(ass[1])) Loading