From c9aa58ad38b9c32d4801e856288e3e7ca46c55de Mon Sep 17 00:00:00 2001 From: Nathan Perry Date: Sun, 10 Mar 2019 03:14:57 -0400 Subject: include non-installed games in updategaem output --- src/game.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/game.rs b/src/game.rs index 1099af5..9d66243 100644 --- a/src/game.rs +++ b/src/game.rs @@ -469,9 +469,9 @@ fn updategaem(_ctx: &mut Context, msg: &Message, mut args: Args) -> Result<()> { }, }; - let unknown_appids = (0..user_column.len()) + let missing_appids = (0..user_column.len()) .filter_map(|x| user_column[x].parse::().ok().map(|s| (x, s))) - .filter(|(_, s)| *s == GameStatus::Unknown) + .filter(|(_, s)| *s == GameStatus::Unknown || *s == GameStatus::NotInstalled) .filter_map(|(x, _)| appid_column .get(x) .and_then(|s| s.parse::().ok().map(|appid| (appid, x)))); @@ -509,7 +509,7 @@ fn updategaem(_ctx: &mut Context, msg: &Message, mut args: Args) -> Result<()> { .map(|ge| ge.app_id) .collect::>(); - let found_games = unknown_appids + let found_games = missing_appids .filter_map(|(ai, x)| if games_owned.contains(&ai) { Some(&spreadsheet[0][x + 1]) } else { -- cgit v1.3.1