worked on system, added member, advisor & admin management.
This commit is contained in:
@@ -43,7 +43,7 @@ class Log:
|
||||
date = ?,
|
||||
description = ?,
|
||||
additional_information = ?,
|
||||
suspicious = ?,
|
||||
suspicious = ?
|
||||
WHERE id = ?
|
||||
""", (self.firstname, self.lastname, self.zipcode, self.city_id, self.email, self.phone, self.password, self.role, self.id))
|
||||
|
||||
@@ -51,6 +51,13 @@ class Log:
|
||||
cur.close()
|
||||
return True
|
||||
|
||||
def delete(self):
|
||||
cur = self.connection.cursor()
|
||||
cur.execute("""DELETE FROM logs WHERE id = ?""", (self.id))
|
||||
self.connection.commit()
|
||||
cur.close()
|
||||
return True
|
||||
|
||||
def _set_row_values(self, row):
|
||||
self.id = row[0]
|
||||
self.username = row[1]
|
||||
|
Reference in New Issue
Block a user