Update db.py
This commit is contained in:
parent
667d4563ca
commit
0d2ec251e4
1 changed files with 2 additions and 2 deletions
|
@ -154,8 +154,8 @@ class DB:
|
||||||
def updateEntry(self, entry):
|
def updateEntry(self, entry):
|
||||||
cursor = self.conn.cursor()
|
cursor = self.conn.cursor()
|
||||||
cursor.execute(
|
cursor.execute(
|
||||||
"UPDATE entries SET title = ?, latitude = ?, longitude = ?, votes = ?, image_url = ?;",
|
"UPDATE entries SET title = ?, latitude = ?, longitude = ?, votes = ?, image_url = ? WHERE id = ?;",
|
||||||
[entry.name, entry.location_lat, entry.location_long, entry.votes, entry.image_url],
|
[entry.name, entry.location_lat, entry.location_long, entry.votes, entry.image_url, entry.id],
|
||||||
)
|
)
|
||||||
self.conn.commit()
|
self.conn.commit()
|
||||||
cursor.close()
|
cursor.close()
|
||||||
|
|
Reference in a new issue