aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKonstantin Ryabitsev <konstantin@linuxfoundation.org>2023-12-21 09:53:10 -0500
committerKonstantin Ryabitsev <konstantin@linuxfoundation.org>2023-12-21 09:53:10 -0500
commit856be644b3440131e2e374360e5a7fa4252b0b2b (patch)
tree7835f1121f1ea49cee934f37c60bfee51fce927b
parent1fb7e0248827b45d178d0cbe4ced7aaa4ed3c236 (diff)
downloadb4-856be644b3440131e2e374360e5a7fa4252b0b2b.tar.gz
init: fix bug in cache result retrieval
Looks like we were returning way too early and only reading the first message in the cached query results. Signed-off-by: Konstantin Ryabitsev <konstantin@linuxfoundation.org>
-rw-r--r--b4/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/b4/__init__.py b/b4/__init__.py
index 967d603..16432bf 100644
--- a/b4/__init__.py
+++ b/b4/__init__.py
@@ -2963,7 +2963,7 @@ def get_pi_search_results(query: str, nocache: bool = False) -> Optional[List[em
for msg in os.listdir(cachedir):
with open(os.path.join(cachedir, msg), 'rb') as fh:
msgs.append(email.message_from_binary_file(fh, policy=emlpolicy))
- return msgs
+ return msgs
loc = urllib.parse.urlparse(query_url)
logger.info('Grabbing search results from %s', loc.netloc)