From bf567438a9720c18f7e0045f4b198cf143fa7053 Mon Sep 17 00:00:00 2001 From: zlg Date: Tue, 9 Oct 2018 23:30:29 -0700 Subject: update_game: ensure notes are also saved --- src/vgstash/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/vgstash/__init__.py b/src/vgstash/__init__.py index ee07c78..e3ede03 100755 --- a/src/vgstash/__init__.py +++ b/src/vgstash/__init__.py @@ -308,9 +308,9 @@ class DB(object): c = self.conn.cursor() # TODO: do this better c.execute("UPDATE games\ - SET title=?, system=?, ownership=?, progress=?\ + SET title=?, system=?, ownership=?, progress=?, notes=?\ WHERE title=? AND system=?", - (source.title, source.system, source.ownership, source.progress, target.title, target.system)) + (source.title, source.system, source.ownership, source.progress, source.notes, target.title, target.system)) self.conn.commit() return (c.rowcount > 0) else: -- cgit v1.2.3-54-g00ecf