[SUCS Devel] [Git][sucs/accountmanager][master] don't do deletes when in debugmode

Imran Hussain imranh at sucs.org
Sun Mar 10 12:55:38 GMT 2019


Imran Hussain pushed to branch master at sucs / accountmanager


Commits:
e3fa7c01 by Imran Hussain at 2019-03-10T12:55:21Z
don't do deletes when in debugmode

- - - - -


1 changed file:

- sucsam.py


Changes:

=====================================
sucsam.py
=====================================
@@ -384,8 +384,11 @@ def deleteMenu(deleteArray):
 			print("Adding " + str(student[0]) + " to the list because the DB says: " + str(student[1]))
 			deleteArray.append(student[0])
 	elif option == "9":
-		print("Nope not yet")
-		deleteMenu(deleteArray)
+		if debugmode > 0
+			print("Debugmode is set. Doing No Deletes.")
+			deleteMenu(deleteArray)
+		elif debugmode == 0
+			deleteUser(deleteArray)
 	elif option == "0":
 		mainMenu()
 	else:



View it on GitLab: https://projects.sucs.org/sucs/accountmanager/commit/e3fa7c01b703393edd2fbd43788b2c07e074de11

-- 
View it on GitLab: https://projects.sucs.org/sucs/accountmanager/commit/e3fa7c01b703393edd2fbd43788b2c07e074de11
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/d92305e2/attachment-0001.html>


More information about the Devel mailing list