[SUCS Devel] [Git][sucs/accountmanager][master] Add a new option to delete menu to just get accounts markd for deletion
Imran Hussain
imranh at sucs.org
Sun Mar 10 14:55:48 GMT 2019
Imran Hussain pushed to branch master at sucs / accountmanager
Commits:
7a8faca3 by Imran Hussain at 2019-03-10T14:55:23Z
Add a new option to delete menu to just get accounts markd for deletion
- - - - -
1 changed file:
- sucsam.py
Changes:
=====================================
sucsam.py
=====================================
@@ -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")
@@ -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.")
View it on GitLab: https://projects.sucs.org/sucs/accountmanager/commit/7a8faca3e4780f7e14f86d18e8c68cb82bb4ec7b
--
View it on GitLab: https://projects.sucs.org/sucs/accountmanager/commit/7a8faca3e4780f7e14f86d18e8c68cb82bb4ec7b
You're receiving this email because of your account on projects.sucs.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sucs.org/pipermail/devel/attachments/20190310/c30a5040/attachment-0001.html>
More information about the Devel
mailing list