added deletion of places users have visited
This commit is contained in:
parent
a0618b058e
commit
8e5f12c03c
1 changed files with 6 additions and 1 deletions
|
@ -180,4 +180,9 @@ class DB:
|
|||
for x in result:
|
||||
array_locations.append(x[2])
|
||||
return array_locations
|
||||
#should return a list of IDs of places the user has visited
|
||||
#should return a list of IDs of places the user has visited
|
||||
|
||||
def deleteUserLocation(self, ID):
|
||||
cursor = self.conn.cursor()
|
||||
cursor.execute('DELETE FROM places_visited WHERE ID = ?', ID)
|
||||
cursor.commit()
|
Reference in a new issue