summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorvg <vgm+dev@devys.org>2026-03-26 19:26:42 +0100
committervg <vgm+dev@devys.org>2026-03-26 19:26:42 +0100
commitc11a503c639015dc9418096c62490f554484127b (patch)
tree85aa1e11ef7f8098774a08ad45f00d92906a7dbd
parent47ccad3f96cc92c9a1d4c91247c1d08c35eb214a (diff)
downloadgamechest-c11a503c639015dc9418096c62490f554484127b.tar.gz
gamechest-c11a503c639015dc9418096c62490f554484127b.tar.bz2
gamechest-c11a503c639015dc9418096c62490f554484127b.zip
update only installed games
-rwxr-xr-xgamechestcli/src/gamechest/__main__.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/gamechestcli/src/gamechest/__main__.py b/gamechestcli/src/gamechest/__main__.py
index 6a20425..10364c6 100755
--- a/gamechestcli/src/gamechest/__main__.py
+++ b/gamechestcli/src/gamechest/__main__.py
@@ -42,8 +42,10 @@ def main():
update_count = 0
game_count = 0
for gameid in game_ids:
- game_count += 1 # don't do len() as game_ids can be a generator
game_info = game_db.get_info(gameid)
+ if not status_db.is_installed(game_info):
+ continue
+ game_count += 1 # don't do len() as game_ids can be a generator
if status_db.is_up_to_date(game_info):
continue
print(f'Updating {gameid}')