summaryrefslogtreecommitdiffstats
path: root/gamechestcli/gamechest/statusdb.py
diff options
context:
space:
mode:
Diffstat (limited to 'gamechestcli/gamechest/statusdb.py')
-rw-r--r--gamechestcli/gamechest/statusdb.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/gamechestcli/gamechest/statusdb.py b/gamechestcli/gamechest/statusdb.py
index a010206..a41fe32 100644
--- a/gamechestcli/gamechest/statusdb.py
+++ b/gamechestcli/gamechest/statusdb.py
@@ -43,7 +43,7 @@ class StatusDB:
(game_info['id'], ))
.fetchone()
)
- with cursor:
+ with self.conn:
if row is None:
cursor.execute('''
INSERT INTO status
@@ -77,9 +77,9 @@ class StatusDB:
#return False
raise ValueError('Game not found')
version_installed = row[0]
- return f'{game_id}_v{version}'
+ return f'{game_id}_v{version_installed}'
- def unset_installed(self, game_info):
+ def set_uninstalled(self, game_info):
return self.set_installed(game_info, installed=False)
def __enter__(self):