From f14696c41b1e8ddcc250283f20af2e4bc38add21 Mon Sep 17 00:00:00 2001 From: emkarcinos Date: Wed, 6 Apr 2022 10:09:25 +0200 Subject: [PATCH] Exec param fix --- search-engine.py | 2 +- setup.sh | 0 2 files changed, 1 insertion(+), 1 deletion(-) mode change 100644 => 100755 setup.sh diff --git a/search-engine.py b/search-engine.py index 417da2d..4b69879 100644 --- a/search-engine.py +++ b/search-engine.py @@ -5,7 +5,7 @@ import sys from sklearn.feature_extraction.text import TfidfVectorizer -enable_popularity = len(sys.argv) > 2 and sys.argv[1] == '--no-popularity' +enable_popularity = not (len(sys.argv) >= 2 and sys.argv[1] == '--no-popularity') def get_appid_for_idx(idx): return steam_data.iloc[idx]['appid'] diff --git a/setup.sh b/setup.sh old mode 100644 new mode 100755