diff options
Diffstat (limited to 'gamechestcli/gamechest/statusdb.py')
-rw-r--r-- | gamechestcli/gamechest/statusdb.py | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/gamechestcli/gamechest/statusdb.py b/gamechestcli/gamechest/statusdb.py index a41fe32..e343d8e 100644 --- a/gamechestcli/gamechest/statusdb.py +++ b/gamechestcli/gamechest/statusdb.py @@ -66,18 +66,18 @@ class StatusDB: game_info['id'], )) - def get_installed_game_name(self, game_id): - row = ( - self.conn - .execute('SELECT version_installed FROM status WHERE game_id = ?', - (game_id, )) - .fetchone() - ) - if row is None: - #return False - raise ValueError('Game not found') - version_installed = row[0] - return f'{game_id}_v{version_installed}' + #def get_installed_game_name(self, game_id): + # row = ( + # self.conn + # .execute('SELECT version_installed FROM status WHERE game_id = ?', + # (game_id, )) + # .fetchone() + # ) + # if row is None: + # #return False + # raise ValueError('Game not found') + # version_installed = row[0] + # return f'{game_id}_v{version_installed}' def set_uninstalled(self, game_info): return self.set_installed(game_info, installed=False) |