From ff2a6d1ae17ccdcc37fc937ab22bc7094d64368b Mon Sep 17 00:00:00 2001 From: Rajan Date: Mon, 9 Oct 2023 15:21:03 -0400 Subject: [PATCH] Fix search when using Title ID --- pynps/functions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pynps/functions.py b/pynps/functions.py index 7c4ec99..b253577 100644 --- a/pynps/functions.py +++ b/pynps/functions.py @@ -556,7 +556,7 @@ def find(query): else: result = result + [item for item in system_database if (item['System'] == system and item['Region'] in region and item['Type'] in types) and - (query.lower() in item['Name'].lower() or query.lower() in item['Title ID']) and + (query.lower() in item['Name'].lower() or query.lower() in item['Title ID'].lower()) and (item['PKG direct link'] not in ["", "MISSING", None, "CART ONLY"]) ] except: