summaryrefslogtreecommitdiff
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
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:
='insertions'>+9 At present, user modification is needed to make these seamless. vgup() may need to be axed in favor of telling the user to make an alias. 2018-03-13Make VGSTASH_DB_LOCATION point to a filezlg2-21/+20 It used to point to a directory, which would then look for .vgstash.db. This behavior was kind of backwards and I don't remember why I did it that way. This change gives users more control over where they put their DB. Be sure to update your environment variable if you have it set! 2016-11-18Remove settings from helpers.shZe Libertine Gamer1-5/+0 Sourcing them in .bash_profile screws up login if they're set. 2016-11-15Correct phrasing in README.Ze Libertine Gamer1-4/+4 2016-11-13DerpZe Libertine Gamer1-0/+1 2016-11-03Improve error handling in shell scriptsZe Libertine Gamer4-3/+23 2016-10-24Correct run_again, add recursionZe Libertine Gamer1-0/+4 Loops and functions -- oh my, what a useful combination. :) 2016-10-21Add quotes to correct behavior for arglistZe Libertine Gamer1-1/+1 2016-10-14updater.sh: add recursion, error handlingZe Libertine Gamer1-43/+101 2016-10-14Correct pipe-handling behaviorZe Libertine Gamer1-1/+9 2016-10-12Clarify a method to move between platformsZe Libertine Gamer1-2/+5 Also correct a typo.