diff options
author | zlg <zlg@zlg.space> | 2018-10-09 23:30:29 -0700 |
---|---|---|
committer | zlg <zlg@zlg.space> | 2018-10-09 23:30:29 -0700 |
commit | bf567438a9720c18f7e0045f4b198cf143fa7053 (patch) | |
tree | 539d36579bd11cf52f23643e17e3633717dd2433 /src | |
parent | cli: add 'update' command (diff) | |
download | vgstash-bf567438a9720c18f7e0045f4b198cf143fa7053.tar.gz vgstash-bf567438a9720c18f7e0045f4b198cf143fa7053.tar.bz2 vgstash-bf567438a9720c18f7e0045f4b198cf143fa7053.tar.xz vgstash-bf567438a9720c18f7e0045f4b198cf143fa7053.zip |
update_game: ensure notes are also saved
Diffstat (limited to 'src')
-rwxr-xr-x | src/vgstash/__init__.py | 4 |
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: |