From 0d2ec251e450749509b76f10e760563704048837 Mon Sep 17 00:00:00 2001 From: AKP Date: Sun, 30 Oct 2022 11:25:09 +0000 Subject: [PATCH] Update `db.py` --- backend/duckpond/db.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/duckpond/db.py b/backend/duckpond/db.py index f7baacc..988d44a 100644 --- a/backend/duckpond/db.py +++ b/backend/duckpond/db.py @@ -154,8 +154,8 @@ class DB: def updateEntry(self, entry): cursor = self.conn.cursor() cursor.execute( - "UPDATE entries SET title = ?, latitude = ?, longitude = ?, votes = ?, image_url = ?;", - [entry.name, entry.location_lat, entry.location_long, entry.votes, entry.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.id], ) self.conn.commit() cursor.close()