diff options
author | zlg <zlg@zlg.space> | 2018-10-06 22:26:21 -0700 |
---|---|---|
committer | zlg <zlg@zlg.space> | 2018-10-06 22:26:21 -0700 |
commit | e5875bb6b73f91db5a9982e2816de649e9bc4ef6 (patch) | |
tree | 20b6de8327379999fdb0589fe5bc3cae1ade726c /src/vgstash_cli.py | |
parent | cli: change "Status" heading to "Progress" (diff) | |
download | vgstash-e5875bb6b73f91db5a9982e2816de649e9bc4ef6.tar.gz vgstash-e5875bb6b73f91db5a9982e2816de649e9bc4ef6.tar.bz2 vgstash-e5875bb6b73f91db5a9982e2816de649e9bc4ef6.tar.xz vgstash-e5875bb6b73f91db5a9982e2816de649e9bc4ef6.zip |
Remove ID field from DB
The sqlite database already uses a game's title and system as the
primary keys. Row IDs are redundant.
Diffstat (limited to 'src/vgstash_cli.py')
-rw-r--r-- | src/vgstash_cli.py | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/vgstash_cli.py b/src/vgstash_cli.py index 5aada8c..39d2454 100644 --- a/src/vgstash_cli.py +++ b/src/vgstash_cli.py @@ -38,10 +38,9 @@ def row_format(row, width, header): # system name (8) # ownership (3) # progress (9) - twidth = int(width) - 36 + twidth = int(width) - 29 if header == True: - click.echo("{:^4s} | {:<{w}s} | {:<8s} | {:^3s} | {:<9s}".format( - "ID", + click.echo("{:<{w}s} | {:<8s} | {:^3s} | {:<9s}".format( "Title", "System", "Own", @@ -50,7 +49,6 @@ def row_format(row, width, header): ) click.echo("-" * int(width)) - gidstr = "{: >4d}".format(row['rowid']) titlestr = "{: <{w}s}".format(row['title'][:twidth], w=twidth) systemstr = "{: ^8s}".format(row['system'][:8]) # unowned, physical, digital, both @@ -64,7 +62,7 @@ def row_format(row, width, header): 4: 'C' } progstr = "{: <7s}".format((" " * row['progress'] * 2) + progltr[row['progress']]) - print(" | ".join((gidstr, titlestr, systemstr, ownstr, progstr))) + print(" | ".join((titlestr, systemstr, ownstr, progstr))) @cli.command('add') |