summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorzlg <zlg@zlg.space>2018-10-09 23:30:29 -0700
committerzlg <zlg@zlg.space>2018-10-09 23:30:29 -0700
commitbf567438a9720c18f7e0045f4b198cf143fa7053 (patch)
tree539d36579bd11cf52f23643e17e3633717dd2433 /src
parentcli: add 'update' command (diff)
downloadvgstash-bf567438a9720c18f7e0045f4b198cf143fa7053.tar.gz
vgstash-bf567438a9720c18f7e0045f4b198cf143fa7053.tar.bz2
vgstash-bf567438a9720c18f7e0045f4b198cf143fa7053.tar.xz
vgstash-bf567438a9720c18f7e0045f4b198cf143fa7053.zip
update_game: ensure notes are also saved
Diffstat (limited to '')
-rwxr-xr-xsrc/vgstash/__init__.py4
1 files 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: