Loading sucsam.py +15 −0 Original line number Diff line number Diff line Loading @@ -374,6 +374,7 @@ def deleteMenu(deleteArray): print("2. Add/delete users from delete list") print("3. Auto populate list of users to be deleted") print("3.1 Just add student accounts") print("3.5 Just add accounts marked as 'delete' in the DB") print("9. Do the delete") print("0. Go back to main menu") Loading Loading @@ -413,6 +414,20 @@ def deleteMenu(deleteArray): for student in studentsBad: print("Adding " + str(student[0]) + " to the list because the DB says: " + str(student[1])) deleteArray.append(student[0]) elif option == "3.5": 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]) 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]) for ass in associatesBad: if ass == "delete" print("Adding " + str(ass[0]) + " to the list because the DB says: " + str(ass[1])) deleteArray.append(ass[0]) deleteMenu(deleteArray) elif option == "9": if debugmode > 0: print("Debugmode is set. Doing No Deletes.") Loading Loading
sucsam.py +15 −0 Original line number Diff line number Diff line Loading @@ -374,6 +374,7 @@ def deleteMenu(deleteArray): print("2. Add/delete users from delete list") print("3. Auto populate list of users to be deleted") print("3.1 Just add student accounts") print("3.5 Just add accounts marked as 'delete' in the DB") print("9. Do the delete") print("0. Go back to main menu") Loading Loading @@ -413,6 +414,20 @@ def deleteMenu(deleteArray): for student in studentsBad: print("Adding " + str(student[0]) + " to the list because the DB says: " + str(student[1])) deleteArray.append(student[0]) elif option == "3.5": 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]) 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]) for ass in associatesBad: if ass == "delete" print("Adding " + str(ass[0]) + " to the list because the DB says: " + str(ass[1])) deleteArray.append(ass[0]) deleteMenu(deleteArray) elif option == "9": if debugmode > 0: print("Debugmode is set. Doing No Deletes.") Loading