Commit 0a469832 authored by Imran Hussain's avatar Imran Hussain
Browse files

Remove peoples history from printer table when deleting.

parent 8dadfe40
......@@ -345,6 +345,8 @@ def deleteUser(peopleList):
cur = DBconn.cursor()
# delete from doorcards first
cur.execute("DELETE FROM doorcards WHERE uid=%(uid)s",{"uid" : str(userDBinfo[0][0])})
# delete from printer table
cur.execute("DELETE FROM printer WHERE username=%(user)s",{"user" : username})
# delete from members table
cur.execute("DELETE FROM members WHERE username=%(user)s",{"user" : username})
# add their some details to the oldmembers table
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment