#10 Added ability for users to be removed from the site.
This commit is contained in:
@ -72,5 +72,10 @@ class UserController(DatabaseController):
|
||||
def update(self):
|
||||
print("Doing work")
|
||||
|
||||
def delete(self):
|
||||
print("Doing work")
|
||||
def delete(self, id: int):
|
||||
params = [
|
||||
id
|
||||
]
|
||||
query = """ DELETE FROM Users WHERE id = ? """
|
||||
|
||||
return self.do(query, params)
|
||||
|
Reference in New Issue
Block a user