added deletion of places users have visited

This commit is contained in:
ellie 2022-10-29 23:51:25 +01:00
parent a0618b058e
commit 8e5f12c03c

View file

@ -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()