From bf1684168a914159f2155f6ca8285b57a3910be1 Mon Sep 17 00:00:00 2001 From: bouni Date: Fri, 2 Aug 2024 16:49:11 +0200 Subject: [PATCH] Remove list comprehension filter because of LIMIT 1 in SQL query --- library.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library.py b/library.py index fca65f3..e7081ee 100644 --- a/library.py +++ b/library.py @@ -392,7 +392,7 @@ def get_part_details(self, lcsc: list) -> list: for number in lcsc: self.logger.debug(number) cur.execute(query, {"number": f'"{number}"'}) - results.extend([x for x in cur.fetchall() if x["lcsc"] == number]) # Filter exact match as FTS5 does return every match + results.extend(cur.fetchall()) return results def update(self):